Package org.refcodes.tabular
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:
ColumnAccessor
public class ColumnMismatchException extends TabularException
Thrown in case a value was found in the e.g. in aRecord
of the wrong type than specified by a providedColumn
(of for example aHeader
).- 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 java.lang.Object,B extends org.refcodes.mixin.ValueAccessor.ValueBuilder<V,B>>, org.refcodes.mixin.ValueAccessor.ValueMutator<V extends java.lang.Object>, org.refcodes.mixin.ValueAccessor.ValueProperty<V extends java.lang.Object>
-
-
Constructor Summary
Constructors Constructor Description ColumnMismatchException(Column<?> aColumn, java.lang.Object aValue, java.lang.String message)
Instantiates a new column mismatch exception.ColumnMismatchException(Column<?> aColumn, java.lang.Object aValue, java.lang.String aMessage, java.lang.String aErrorCode)
Instantiates a new column mismatch exception.ColumnMismatchException(Column<?> aColumn, java.lang.Object aValue, java.lang.String message, java.lang.Throwable cause)
Instantiates a new column mismatch exception.ColumnMismatchException(Column<?> aColumn, java.lang.Object aValue, java.lang.String aMessage, java.lang.Throwable aCause, java.lang.String aErrorCode)
Instantiates a new column mismatch exception.ColumnMismatchException(Column<?> aColumn, java.lang.Object aValue, java.lang.Throwable cause)
Instantiates a new column mismatch exception.ColumnMismatchException(Column<?> aColumn, java.lang.Object aValue, java.lang.Throwable aCause, java.lang.String aErrorCode)
Instantiates a new column mismatch exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Column<?>
getColumn()
Gets the column.java.lang.Object
getValue()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Constructor Detail
-
ColumnMismatchException
public ColumnMismatchException(Column<?> aColumn, java.lang.Object aValue, java.lang.String aMessage, java.lang.String aErrorCode)
Instantiates a new column mismatch exception.- Parameters:
aColumn
- the columnaValue
- the valueaMessage
- the messageaErrorCode
- the error code
-
ColumnMismatchException
public ColumnMismatchException(Column<?> aColumn, java.lang.Object aValue, java.lang.String aMessage, java.lang.Throwable aCause, java.lang.String aErrorCode)
Instantiates a new column mismatch exception.- Parameters:
aColumn
- the columnaValue
- the valueaMessage
- the messageaCause
- the causeaErrorCode
- the error code
-
ColumnMismatchException
public ColumnMismatchException(Column<?> aColumn, java.lang.Object aValue, java.lang.String message, java.lang.Throwable cause)
Instantiates a new column mismatch exception.- Parameters:
aColumn
- the columnaValue
- the valuemessage
- the messagecause
- the cause
-
ColumnMismatchException
public ColumnMismatchException(Column<?> aColumn, java.lang.Object aValue, java.lang.String message)
Instantiates a new column mismatch exception.- Parameters:
aColumn
- the columnaValue
- the valuemessage
- the message
-
ColumnMismatchException
public ColumnMismatchException(Column<?> aColumn, java.lang.Object aValue, java.lang.Throwable aCause, java.lang.String aErrorCode)
Instantiates a new column mismatch exception.- Parameters:
aColumn
- the columnaValue
- the valueaCause
- the causeaErrorCode
- the error code
-
ColumnMismatchException
public ColumnMismatchException(Column<?> aColumn, java.lang.Object aValue, java.lang.Throwable cause)
Instantiates a new column mismatch exception.- Parameters:
aColumn
- the columnaValue
- the valuecause
- the cause
-
-
Method Detail
-
getValue
public java.lang.Object getValue()
- Specified by:
getValue
in interfaceorg.refcodes.mixin.ValueAccessor<java.lang.Object>
-
getColumn
public Column<?> getColumn()
Gets the column.- Specified by:
getColumn
in interfaceColumnAccessor
- Returns:
- the column
-
-