Class AmbiguousKeyRuntimeException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.refcodes.exception.AbstractRuntimeException
org.refcodes.struct.StructureRuntimeException
org.refcodes.struct.AmbiguousKeyRuntimeException
All Implemented Interfaces:
Serializable, org.refcodes.exception.ErrorCodeAccessor, org.refcodes.exception.Trap, org.refcodes.mixin.KeyAccessor<String>

public class AmbiguousKeyRuntimeException extends StructureRuntimeException implements org.refcodes.mixin.KeyAccessor<String>
Thrown in case this instance does not contain the requested element (no such key found in the collection).
See Also:
  • Field Details

    • _key

      protected String _key
  • Constructor Details

    • AmbiguousKeyRuntimeException

      public AmbiguousKeyRuntimeException(String aMessage, String aKey, String aErrorCode)
      Parameters:
      aKey - The ambiguous key in question.
    • AmbiguousKeyRuntimeException

      public AmbiguousKeyRuntimeException(String aMessage, String aKey, Throwable aCause, String aErrorCode)
      Parameters:
      aKey - The ambiguous key in question.
    • AmbiguousKeyRuntimeException

      public AmbiguousKeyRuntimeException(String aMessage, String aKey, Throwable aCause)
      Parameters:
      aKey - The ambiguous key in question.
    • AmbiguousKeyRuntimeException

      public AmbiguousKeyRuntimeException(String aMessage, String aKey)
      Parameters:
      aKey - The ambiguous key in question.
    • AmbiguousKeyRuntimeException

      public AmbiguousKeyRuntimeException(String aKey, Throwable aCause, String aErrorCode)
      Parameters:
      aKey - The ambiguous key in question.
    • AmbiguousKeyRuntimeException

      public AmbiguousKeyRuntimeException(String aKey, Throwable aCause)
      Parameters:
      aKey - The ambiguous key in question.
  • Method Details

    • getKey

      public String getKey()
      Specified by:
      getKey in interface org.refcodes.mixin.KeyAccessor<String>
    • getPatternArguments

      public Object[] getPatternArguments()
      Specified by:
      getPatternArguments in interface org.refcodes.exception.Trap