AbstractTableParser

com.phasmidsoftware.tableparser.core.parse.AbstractTableParser
See theAbstractTableParser companion class

The AbstractTableParser companion object provides utility methods for logging exceptions during the table parsing process.

This object includes methods to log exceptions, whether they are directly provided as a Throwable or wrapped inside a Try result.

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def logException(e: Throwable): Unit

Logs an exception by generating a warning message that includes the localized message of the exception and, if present, the message from the exception's cause.

Logs an exception by generating a warning message that includes the localized message of the exception and, if present, the message from the exception's cause.

Value parameters

e

the Throwable exception to be logged. This might include a cause that provides additional context.

Attributes

Returns

Unit. The method does not produce a result; it logs the warning message using the TableParser.logger.

def logException[X](xy: Try[X]): Unit

Logs an exception contained within a Try result. If the Try is a Failure, the enclosed exception is logged. If it is a Success, no action is taken.

Logs an exception contained within a Try result. If the Try is a Failure, the enclosed exception is logged. If it is a Success, no action is taken.

Value parameters

xy

a Try instance, which may either encapsulate a successful computation (Success) or an exception (Failure).

Attributes

Returns

Unit. This method does not return a value; it is used only for logging purposes.