com.ibm.zosconnect.spi

Class DataXformException

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


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

      Constructors 
      Constructor and Description
      DataXformException()
      Constructs a new instance with null as its detail message and cause.
      DataXformException(java.lang.String message)
      Constructs a new instance with the specified detail message.
      DataXformException(java.lang.String message, int httpStatus)
      Constructs a new instance with the specified detail message and desired HTTP status code.
      DataXformException(java.lang.String message, java.lang.Throwable cause)
      Constructs a new instance with the specified detail message and cause.
      DataXformException(java.lang.Throwable cause)
      Constructs a new instance with the specified cause.
    • 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

      • DataXformException

        public DataXformException()
        Constructs a new instance with null as its detail message and cause.
      • DataXformException

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

        public DataXformException(java.lang.String message,
                                  int httpStatus)
        Constructs a new instance with the specified detail message and desired HTTP status code. The service provider which catches the exception can decide whether or not to use the desired HTTP status code.
        Parameters:
        message - The detail message.
        httpStatus - The HTTP status code that reflects the error causing this exception.
      • DataXformException

        public DataXformException(java.lang.Throwable cause)
        Constructs a new instance with the specified cause.
        Parameters:
        cause - The cause of type Throwable.
      • DataXformException

        public DataXformException(java.lang.String message,
                                  java.lang.Throwable cause)
        Constructs a new instance with the specified detail message and cause.
        Parameters:
        message - The detail message.
        cause - The cause of type Throwable.
    • 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, 500 Internal Server Error is returned.