Class HeaderMismatchException

  • All Implemented Interfaces:
    java.io.Serializable, org.refcodes.exception.ErrorCodeAccessor, org.refcodes.exception.Trap, org.refcodes.mixin.KeyAccessor<java.lang.String>

    public class HeaderMismatchException
    extends TabularException
    Thrown in case there is a mismatch between the given HeaderMismatchException and the Row, i.e. the index for the given key in the header may be out of index of the given row or the given key does not exist in the Header.
    See Also:
    Serialized Form
    • Nested Class Summary

      • 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.KeyAccessor

        org.refcodes.mixin.KeyAccessor.KeyBuilder<K extends java.lang.Object,B extends org.refcodes.mixin.KeyAccessor.KeyBuilder<K,B>>, org.refcodes.mixin.KeyAccessor.KeyMutator<K extends java.lang.Object>, org.refcodes.mixin.KeyAccessor.KeyProperty<K extends java.lang.Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      HeaderMismatchException​(java.lang.String aKey, java.lang.String message)
      Instantiates a new header mismatch exception.
      HeaderMismatchException​(java.lang.String aKey, java.lang.String aMessage, java.lang.String aErrorCode)
      Instantiates a new header mismatch exception.
      HeaderMismatchException​(java.lang.String aKey, java.lang.String message, java.lang.Throwable cause)
      Instantiates a new header mismatch exception.
      HeaderMismatchException​(java.lang.String aKey, java.lang.String aMessage, java.lang.Throwable aCause, java.lang.String aErrorCode)
      Instantiates a new header mismatch exception.
      HeaderMismatchException​(java.lang.String aKey, java.lang.Throwable cause)
      Instantiates a new header mismatch exception.
      HeaderMismatchException​(java.lang.String aKey, java.lang.Throwable aCause, java.lang.String aErrorCode)
      Instantiates a new header mismatch exception.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getKey()
      Gets the key.
      • Methods inherited from class org.refcodes.exception.AbstractException

        getErrorCode
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
    • Constructor Detail

      • HeaderMismatchException

        public HeaderMismatchException​(java.lang.String aKey,
                                       java.lang.String aMessage,
                                       java.lang.String aErrorCode)
        Instantiates a new header mismatch exception.
        Parameters:
        aKey - the key
        aMessage - the message
        aErrorCode - the error code
      • HeaderMismatchException

        public HeaderMismatchException​(java.lang.String aKey,
                                       java.lang.String aMessage,
                                       java.lang.Throwable aCause,
                                       java.lang.String aErrorCode)
        Instantiates a new header mismatch exception.
        Parameters:
        aKey - the key
        aMessage - the message
        aCause - the cause
        aErrorCode - the error code
      • HeaderMismatchException

        public HeaderMismatchException​(java.lang.String aKey,
                                       java.lang.String message,
                                       java.lang.Throwable cause)
        Instantiates a new header mismatch exception.
        Parameters:
        aKey - the key
        message - the message
        cause - the cause
      • HeaderMismatchException

        public HeaderMismatchException​(java.lang.String aKey,
                                       java.lang.String message)
        Instantiates a new header mismatch exception.
        Parameters:
        aKey - the key
        message - the message
      • HeaderMismatchException

        public HeaderMismatchException​(java.lang.String aKey,
                                       java.lang.Throwable aCause,
                                       java.lang.String aErrorCode)
        Instantiates a new header mismatch exception.
        Parameters:
        aKey - the key
        aCause - the cause
        aErrorCode - the error code
      • HeaderMismatchException

        public HeaderMismatchException​(java.lang.String aKey,
                                       java.lang.Throwable cause)
        Instantiates a new header mismatch exception.
        Parameters:
        aKey - the key
        cause - the cause
    • Method Detail

      • getKey

        public java.lang.String getKey()
        Gets the key.
        Specified by:
        getKey in interface org.refcodes.mixin.KeyAccessor<java.lang.String>
        Returns:
        the key