Class HeaderMismatchException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.refcodes.exception.AbstractException
org.refcodes.tabular.TabularException
org.refcodes.tabular.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:
  • Constructor Details

    • 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 Details

    • getKey

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