Class NoSuchParameterException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- de.aristaflow.adept2.model.datamanagement.NoSuchParameterException
-
- All Implemented Interfaces:
Serializable
public class NoSuchParameterException extends Exception
This exception type may be thrown by methods to indicate that the passed parameter(s)/parameterID(s) to work on do not exist in the given context. For example, the method called by an application component to retrieve the actual value of a parameter may throw this exception if there is no corresponding parameter specified for the calling activity.- Author:
- Markus Lauer
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected String
parameterName
The name of the parameter which has been requested but which does not exist.
-
Constructor Summary
Constructors Constructor Description NoSuchParameterException(String message, String parameterName)
Creates aNoSuchParameterException
with a caller specified (error) message.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
parameterName
protected final String parameterName
The name of the parameter which has been requested but which does not exist.
-
-
Constructor Detail
-
NoSuchParameterException
public NoSuchParameterException(String message, String parameterName)
Creates aNoSuchParameterException
with a caller specified (error) message.- Parameters:
parameterName
- The name of the parameter which has been requested but which does not exist.message
- The message with an explanation of the exception.
-
-