StructureException

info.fingo.spata.error.StructureException
final class StructureException extends CSVException

Exception reported for CSV format errors.

Possible messageCodes are:

  • unclosedQuotation for not enclosed quotation,
  • unescapedQuotation for not escaped quotation,
  • unmatchedQuotation for unmatched quotation (probably premature end of file),
  • fieldTooLong for values longer than provided maximum (may be caused by unmatched quotation),
  • missingHeader when header isn't found (may be empty content),
  • duplicatedHeader when two or more header names are duplicated (not unique),
  • wrongNumberOfFields when number of values doesn't match header or previous records size.

Value parameters

col

column (character) at which error occurred

errorCode

parsing error code

field

field name at which error occurred

position

source row (record) and line at which error occurred

Attributes

See also

CSVException for description of fields providing error location.

Graph
Supertypes
class CSVException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

final def addSuppressed(x$0: Throwable): Unit

Attributes

Inherited from:
Throwable
def fillInStackTrace(): Throwable

Attributes

Inherited from:
Throwable
def getCause(): Throwable

Attributes

Inherited from:
Throwable
def getLocalizedMessage(): String

Attributes

Inherited from:
Throwable
def getMessage(): String

Attributes

Inherited from:
Throwable
def getStackTrace(): Array[StackTraceElement]

Attributes

Inherited from:
Throwable
final def getSuppressed(): Array[Throwable]

Attributes

Inherited from:
Throwable
def initCause(x$0: Throwable): Throwable

Attributes

Inherited from:
Throwable
def printStackTrace(x$0: PrintWriter): Unit

Attributes

Inherited from:
Throwable
def printStackTrace(x$0: PrintStream): Unit

Attributes

Inherited from:
Throwable

Attributes

Inherited from:
Throwable
def setStackTrace(x$0: Array[StackTraceElement]): Unit

Attributes

Inherited from:
Throwable
def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Inherited from:
Throwable

Inherited fields

Attributes

Inherited from:
CSVException