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
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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.tabular.ColumnAccessor
ColumnAccessor.ColumnMutator<T>, ColumnAccessor.ColumnProperty<T>Nested classes/interfaces inherited from interface org.refcodes.exception.ErrorCodeAccessor
org.refcodes.exception.ErrorCodeAccessor.ErrorCodeBuilder<B extends org.refcodes.exception.ErrorCodeAccessor.ErrorCodeBuilder<B>>, org.refcodes.exception.ErrorCodeAccessor.ErrorCodeMutator, org.refcodes.exception.ErrorCodeAccessor.ErrorCodePropertyNested classes/interfaces inherited from interface org.refcodes.mixin.ValueAccessor
org.refcodes.mixin.ValueAccessor.ValueBuilder<V extends Object,B extends org.refcodes.mixin.ValueAccessor.ValueBuilder<V, B>>, org.refcodes.mixin.ValueAccessor.ValueMutator<V extends Object>, org.refcodes.mixin.ValueAccessor.ValueProperty<V extends Object> -
Constructor Summary
ConstructorsConstructorDescriptionColumnMismatchException(Column<?> aColumn, Object aValue, String aMessage) Instantiates a new column mismatch exception.ColumnMismatchException(Column<?> aColumn, Object aValue, String aMessage, String aErrorCode) Instantiates a new column mismatch exception.ColumnMismatchException(Column<?> aColumn, Object aValue, String aMessage, Throwable aCause) Instantiates a new column mismatch exception.ColumnMismatchException(Column<?> aColumn, Object aValue, String aMessage, Throwable aCause, String aErrorCode) Instantiates a new column mismatch exception.ColumnMismatchException(Column<?> aColumn, Object aValue, Throwable aCause) Instantiates a new column mismatch exception.ColumnMismatchException(Column<?> aColumn, Object aValue, Throwable aCause, String aErrorCode) Instantiates a new column mismatch exception. -
Method Summary
Methods inherited from class org.refcodes.exception.AbstractException
getErrorCodeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.refcodes.exception.Trap
toLocalizedMessage, toMessage, toShortLocalizedMessage, toShortMessageMethods inherited from interface org.refcodes.mixin.ValueAccessor
getValueOr
-
Constructor Details
-
ColumnMismatchException
public ColumnMismatchException(Column<?> aColumn, Object aValue, String aMessage, String aErrorCode) Instantiates a new column mismatch exception.- Parameters:
aColumn- the columnaValue- the valueaMessage- The aMessage describing this exception.aErrorCode- The error code identifying this exception.
-
ColumnMismatchException
public ColumnMismatchException(Column<?> aColumn, Object aValue, String aMessage, Throwable aCause, String aErrorCode) Instantiates a new column mismatch exception. -
ColumnMismatchException
Instantiates a new column mismatch exception. -
ColumnMismatchException
Instantiates a new column mismatch exception.- Parameters:
aColumn- the columnaValue- the valueaMessage- The aMessage describing this exception.
-
ColumnMismatchException
public ColumnMismatchException(Column<?> aColumn, Object aValue, Throwable aCause, String aErrorCode) Instantiates a new column mismatch exception. -
ColumnMismatchException
Instantiates a new column mismatch exception.
-
-
Method Details
-
getValue
- Specified by:
getValuein interfaceorg.refcodes.mixin.ValueAccessor<Object>
-
getColumn
Gets the column.- Specified by:
getColumnin interfaceColumnAccessor- Returns:
- the column
-