Class AmbigousKeyRuntimeException

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

    public class AmbigousKeyRuntimeException
    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:
    Serialized Form
    • Constructor Detail

      • AmbigousKeyRuntimeException

        public AmbigousKeyRuntimeException​(String aKey,
                                           String aMessage,
                                           String aErrorCode)
        Instantiates a new net runtime exception.
        Parameters:
        aKey - The key which has not been found.
        aMessage - the message
        aErrorCode - the error code
      • AmbigousKeyRuntimeException

        public AmbigousKeyRuntimeException​(String aKey,
                                           String aMessage,
                                           Throwable aCause,
                                           String aErrorCode)
        Instantiates a new net runtime exception.
        Parameters:
        aKey - The key which has not been found.
        aMessage - the message
        aCause - the cause
        aErrorCode - the error code
      • AmbigousKeyRuntimeException

        public AmbigousKeyRuntimeException​(String aKey,
                                           String message,
                                           Throwable cause)
        Instantiates a new net runtime exception.
        Parameters:
        aKey - The key which has not been found.
        message - the message
        cause - the cause
      • AmbigousKeyRuntimeException

        public AmbigousKeyRuntimeException​(String aKey,
                                           String message)
        Instantiates a new net runtime exception.
        Parameters:
        aKey - The key which has not been found.
        message - the message
      • AmbigousKeyRuntimeException

        public AmbigousKeyRuntimeException​(String aKey,
                                           Throwable aCause,
                                           String aErrorCode)
        Instantiates a new net runtime exception.
        Parameters:
        aKey - The key which has not been found.
        aCause - the cause
        aErrorCode - the error code
      • AmbigousKeyRuntimeException

        public AmbigousKeyRuntimeException​(String aKey,
                                           Throwable cause)
        Instantiates a new net runtime exception.
        Parameters:
        aKey - The key which has not been found.
        cause - the cause
    • Method Detail

      • getKey

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