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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.exception.ErrorCodeAccessor
org.refcodes.exception.ErrorCodeAccessor.ErrorCodeBuilder<B extends org.refcodes.exception.ErrorCodeAccessor.ErrorCodeBuilder<B>>, org.refcodes.exception.ErrorCodeAccessor.ErrorCodeMutator, org.refcodes.exception.ErrorCodeAccessor.ErrorCodeProperty
Nested classes/interfaces inherited from interface org.refcodes.mixin.KeyAccessor
org.refcodes.mixin.KeyAccessor.KeyBuilder<K extends Object,
B extends org.refcodes.mixin.KeyAccessor.KeyBuilder<K, B>>, org.refcodes.mixin.KeyAccessor.KeyMutator<K extends Object>, org.refcodes.mixin.KeyAccessor.KeyProperty<K extends Object> -
Field Summary
-
Constructor Summary
ConstructorDescriptionAmbiguousKeyRuntimeException
(String aMessage, String aKey) AmbiguousKeyRuntimeException
(String aMessage, String aKey, String aErrorCode) AmbiguousKeyRuntimeException
(String aMessage, String aKey, Throwable aCause) AmbiguousKeyRuntimeException
(String aMessage, String aKey, Throwable aCause, String aErrorCode) AmbiguousKeyRuntimeException
(String aKey, Throwable aCause) AmbiguousKeyRuntimeException
(String aKey, Throwable aCause, String aErrorCode) -
Method Summary
Methods inherited from class org.refcodes.exception.AbstractRuntimeException
getErrorCode, getMessage
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.refcodes.exception.Trap
toLocalizedMessage, toMessage, toMessage, toMessage, toShortLocalizedMessage, toShortMessage
-
Field Details
-
_key
-
-
Constructor Details
-
AmbiguousKeyRuntimeException
- 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
- Parameters:
aKey
- The ambiguous key in question.
-
AmbiguousKeyRuntimeException
- Parameters:
aKey
- The ambiguous key in question.
-
AmbiguousKeyRuntimeException
- Parameters:
aKey
- The ambiguous key in question.
-
AmbiguousKeyRuntimeException
- Parameters:
aKey
- The ambiguous key in question.
-
-
Method Details
-
getKey
- Specified by:
getKey
in interfaceorg.refcodes.mixin.KeyAccessor<String>
-
getPatternArguments
- Specified by:
getPatternArguments
in interfaceorg.refcodes.exception.Trap
-