Class ColumnMismatchException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.refcodes.exception.AbstractException
org.refcodes.tabular.TabularException
org.refcodes.tabular.ColumnMismatchException
All Implemented Interfaces:
Serializable, org.refcodes.exception.ErrorCodeAccessor, org.refcodes.exception.Trap, org.refcodes.mixin.ValueAccessor<Object>, ColumnAccessor

public class ColumnMismatchException
extends TabularException
Thrown in case a value was found in the e.g. in a Record of the wrong type than specified by a provided Column (of for example a Header).
See Also:
Serialized Form
  • Constructor Details

    • ColumnMismatchException

      public ColumnMismatchException​(Column<?> aColumn, Object aValue, String aMessage, String aErrorCode)
      Instantiates a new column mismatch exception.
      Parameters:
      aColumn - the column
      aValue - the value
      aMessage - the message
      aErrorCode - the error code
    • ColumnMismatchException

      public ColumnMismatchException​(Column<?> aColumn, Object aValue, String aMessage, Throwable aCause, String aErrorCode)
      Instantiates a new column mismatch exception.
      Parameters:
      aColumn - the column
      aValue - the value
      aMessage - the message
      aCause - the cause
      aErrorCode - the error code
    • ColumnMismatchException

      public ColumnMismatchException​(Column<?> aColumn, Object aValue, String message, Throwable cause)
      Instantiates a new column mismatch exception.
      Parameters:
      aColumn - the column
      aValue - the value
      message - the message
      cause - the cause
    • ColumnMismatchException

      public ColumnMismatchException​(Column<?> aColumn, Object aValue, String message)
      Instantiates a new column mismatch exception.
      Parameters:
      aColumn - the column
      aValue - the value
      message - the message
    • ColumnMismatchException

      public ColumnMismatchException​(Column<?> aColumn, Object aValue, Throwable aCause, String aErrorCode)
      Instantiates a new column mismatch exception.
      Parameters:
      aColumn - the column
      aValue - the value
      aCause - the cause
      aErrorCode - the error code
    • ColumnMismatchException

      public ColumnMismatchException​(Column<?> aColumn, Object aValue, Throwable cause)
      Instantiates a new column mismatch exception.
      Parameters:
      aColumn - the column
      aValue - the value
      cause - the cause
  • Method Details

    • getValue

      public Object getValue()
      Specified by:
      getValue in interface org.refcodes.mixin.ValueAccessor<Object>
    • getColumn

      public Column<?> getColumn()
      Gets the column.
      Specified by:
      getColumn in interface ColumnAccessor
      Returns:
      the column