com.ibm.zosconnect.spi

Class InterceptorException

  • java.lang.Object
    • java.lang.Throwable
      • java.lang.Exception
        • com.ibm.zosconnect.spi.InterceptorException
  • All Implemented Interfaces:
    java.io.Serializable


    public class InterceptorException
    extends java.lang.Exception
    A InterceptorException is thrown to indicate that the OSGI service implementing the Interceptor SPI encountered an error.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      InterceptorException(java.lang.String message)
      Constructs a new instance with the specified detail message.
      InterceptorException(java.lang.String message, int httpServletResponseCode)
      Constructs a new instance with the specified detail message and HTTP servlet response code.
      InterceptorException(java.lang.String message, java.lang.Throwable throwable)
      Constructs a new instance with the specified detail message and cause.
      InterceptorException(java.lang.String message, java.lang.Throwable throwable, int httpServletResponseCode)
      Constructs a new instance with the specified detailed message, cause, and HTTP servlet response code.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int getHttpServletResponseCode()
      Returns the HTTP servlet response code of this Throwable.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • InterceptorException

        public InterceptorException(java.lang.String message)
        Constructs a new instance with the specified detail message.
        Parameters:
        message - The detail message.
      • InterceptorException

        public InterceptorException(java.lang.String message,
                                    int httpServletResponseCode)
        Constructs a new instance with the specified detail message and HTTP servlet response code.
        Parameters:
        message - The detail message.
        httpServletResponseCode - The HTTP servlet response code.
      • InterceptorException

        public InterceptorException(java.lang.String message,
                                    java.lang.Throwable throwable)
        Constructs a new instance with the specified detail message and cause.
        Parameters:
        message - The detail message.
        throwable - The cause of type Throwable.
      • InterceptorException

        public InterceptorException(java.lang.String message,
                                    java.lang.Throwable throwable,
                                    int httpServletResponseCode)
        Constructs a new instance with the specified detailed message, cause, and HTTP servlet response code.
        Parameters:
        message - The detail message.
        throwable - The cause of type Throwable.
        httpServletResponseCode - The HTTP servlet response code.
    • Method Detail

      • getHttpServletResponseCode

        public int getHttpServletResponseCode()
        Returns the HTTP servlet response code of this Throwable.
        Returns:
        The HTTP response code. If it was not set, HttpServletResponse.SC_INTERNAL_SERVER_ERROR is returned.