Class HeaderMismatchException

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

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

      • HeaderMismatchException

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

        public HeaderMismatchException​(String aKey,
                                       String aMessage,
                                       Throwable aCause,
                                       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​(String aKey,
                                       String message,
                                       Throwable cause)
        Instantiates a new header mismatch exception.
        Parameters:
        aKey - the key
        message - the message
        cause - the cause
      • HeaderMismatchException

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

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

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

      • getKey

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