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
-
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.ErrorCodeProperty
Nested 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
Constructors Constructor Description ColumnMismatchException(Column<?> aColumn, Object aValue, String message)
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 message, Throwable cause)
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 cause)
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
getErrorCode
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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 messageaErrorCode
- 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 columnaValue
- the valueaMessage
- the messageaCause
- the causeaErrorCode
- the error code
-
ColumnMismatchException
Instantiates a new column mismatch exception.- Parameters:
aColumn
- the columnaValue
- the valuemessage
- the messagecause
- the cause
-
ColumnMismatchException
Instantiates a new column mismatch exception.- Parameters:
aColumn
- the columnaValue
- the valuemessage
- the message
-
ColumnMismatchException
public ColumnMismatchException(Column<?> aColumn, Object aValue, Throwable aCause, String aErrorCode)Instantiates a new column mismatch exception.- Parameters:
aColumn
- the columnaValue
- the valueaCause
- the causeaErrorCode
- the error code
-
ColumnMismatchException
Instantiates a new column mismatch exception.- Parameters:
aColumn
- the columnaValue
- the valuecause
- the cause
-
-
Method Details
-
getValue
- Specified by:
getValue
in interfaceorg.refcodes.mixin.ValueAccessor<Object>
-
getColumn
Gets the column.- Specified by:
getColumn
in interfaceColumnAccessor
- Returns:
- the column
-