Package net.algart.contexts
Class UnsupportedContextException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.algart.contexts.UnsupportedContextException
- All Implemented Interfaces:
Serializable
Unchecked exception thrown by Context.as(Class)
method
when it cannot serve the request.
Usually it means that the context does not implement the required interface
and does not contain inside any other context that could be returned.
- Author:
- Daniel Alievsky
- See Also:
-
Constructor Summary
ConstructorDescriptionConstructs an instance of this class.UnsupportedContextException
(Class<?> contextClass) Constructs an instance of this class with the message informing that the given context class is not supported.UnsupportedContextException
(String message) Constructs an instance of this class with the specified detail message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnsupportedContextException
public UnsupportedContextException()Constructs an instance of this class. -
UnsupportedContextException
Constructs an instance of this class with the specified detail message.- Parameters:
message
- the detail message.
-
UnsupportedContextException
Constructs an instance of this class with the message informing that the given context class is not supported.- Parameters:
contextClass
- some unsupported context class.
-