Class AbstractInvalidArgumentException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ch.nolix.baseapi.errorcontrol.invalidargumentexception.AbstractInvalidArgumentException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ArgumentBelongsToParentException, ArgumentContainsElementException, ArgumentDoesNotBelongToParentException, ArgumentDoesNotContainElementException, ArgumentDoesNotHaveAttributeException, ArgumentDoesNotSupportMethodException, ArgumentHasAttributeException, ArgumentIsInRangeException, ArgumentIsNotNullException, ArgumentIsNullException, ArgumentIsOutOfRangeException, BiggerArgumentException, ClosedArgumentException, DeletedArgumentException, EmptyArgumentException, EqualArgumentException, InvalidArgumentException, InvalidPortException, NegativeArgumentException, NewArgumentException, NonEmptyArgumentException, NonNegativeArgumentException, NonPositiveArgumentException, PositiveArgumentException, ReferencedArgumentException, SmallerArgumentException, UnacceptedKeyException, UnconnectedArgumentException, UnequalArgumentException, UnrepresentingArgumentException, UnsupportedCaseException
A
AbstractInvalidArgumentException is a RuntimeException that
is supposed to be thrown when a given argument is not valid.
A AbstractInvalidArgumentException stores the argument the
AbstractInvalidArgumentException was created for.
A AbstractInvalidArgumentException stores the name of the argument
the AbstractInvalidArgumentException was created for.- Author:
- Silvan Wyss
- See Also:
-
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
getArgumentName
- Returns:
- the name of the argument of the current
AbstractInvalidArgumentException.
-
getErrorPredicate
- Returns:
- the error predicate of the current
AbstractInvalidArgumentException.
-
getStoredArgument
- Returns:
- the argument of the current
AbstractInvalidArgumentException.
-