Class UnsupportedContextException

All Implemented Interfaces:
Serializable

public class UnsupportedContextException extends RuntimeException

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 Details

    • UnsupportedContextException

      public UnsupportedContextException()
      Constructs an instance of this class.
    • UnsupportedContextException

      public UnsupportedContextException(String message)
      Constructs an instance of this class with the specified detail message.
      Parameters:
      message - the detail message.
    • UnsupportedContextException

      public UnsupportedContextException(Class<?> contextClass)
      Constructs an instance of this class with the message informing that the given context class is not supported.
      Parameters:
      contextClass - some unsupported context class.