public class IllegalContextNameException extends IllegalArgumentException
IllegalArgumentException
that indicates why a context name is illegal.IllegalContextNameException.Reason
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
IllegalContextNameException.Reason
The reason why a context's name is illegal.
|
Constructor and Description |
---|
IllegalContextNameException(IllegalContextNameException.Reason reason)
Constructs an
IllegalContextNameException with the given reason. |
IllegalContextNameException(IllegalContextNameException.Reason reason,
String message)
Constructs an
IllegalContextNameException with the given reason and message. |
Modifier and Type | Method and Description |
---|---|
IllegalContextNameException.Reason |
getReason()
Gets the reason why the context's name is illegal.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public IllegalContextNameException(IllegalContextNameException.Reason reason)
IllegalContextNameException
with the given reason.reason
- the reason why the name is illegal, must not be null
.public IllegalContextNameException(IllegalContextNameException.Reason reason, String message)
IllegalContextNameException
with the given reason and message.reason
- the reason why the name is illegal, must not be null
.message
- the detail messagepublic IllegalContextNameException.Reason getReason()