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 aMessage describing this exception.
      aErrorCode - The error code identifying this exception.
    • HeaderMismatchException

      public HeaderMismatchException(String aKey, String aMessage, Throwable aCause, String aErrorCode)
      Instantiates a new header mismatch exception.
      Parameters:
      aKey - the key
      aMessage - The aMessage describing this exception.
      aCause - The Throwable (Exception) causing this exception.
      aErrorCode - The error code identifying this exception.
    • HeaderMismatchException

      public HeaderMismatchException(String aKey, String aMessage, Throwable aCause)
      Instantiates a new header mismatch exception.
      Parameters:
      aKey - the key
      aMessage - The aMessage describing this exception.
      aCause - The Throwable (Exception) causing this exception.
    • HeaderMismatchException

      public HeaderMismatchException(String aKey, String aMessage)
      Instantiates a new header mismatch exception.
      Parameters:
      aKey - the key
      aMessage - The aMessage describing this exception.
    • HeaderMismatchException

      public HeaderMismatchException(String aKey, Throwable aCause, String aErrorCode)
      Instantiates a new header mismatch exception.
      Parameters:
      aKey - the key
      aCause - The Throwable (Exception) causing this exception.
      aErrorCode - The error code identifying this exception.
    • HeaderMismatchException

      public HeaderMismatchException(String aKey, Throwable aCause)
      Instantiates a new header mismatch exception.
      Parameters:
      aKey - the key
      aCause - The Throwable (Exception) causing this exception.
  • Method Details

    • getKey

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