Class OpenServiceBrokerException

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDescription()
      Returns the error description.
      java.lang.String getError()
      Returns the error code.
      int getStatusCode()
      Returns the HTTP status code.
      java.lang.String toJSONString()
      Returns the JSON representation of the exception as defined in the OSBAPI specification.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
    • Constructor Detail

      • OpenServiceBrokerException

        public OpenServiceBrokerException()
      • OpenServiceBrokerException

        public OpenServiceBrokerException​(int statusCode,
                                          java.lang.String error,
                                          java.lang.String description)
      • OpenServiceBrokerException

        public OpenServiceBrokerException​(int statusCode,
                                          java.lang.String error,
                                          java.lang.String description,
                                          java.lang.Throwable cause)
      • OpenServiceBrokerException

        public OpenServiceBrokerException​(java.lang.String message)
      • OpenServiceBrokerException

        public OpenServiceBrokerException​(java.lang.Throwable cause)
      • OpenServiceBrokerException

        public OpenServiceBrokerException​(java.lang.String message,
                                          java.lang.Throwable cause)
    • Method Detail

      • getStatusCode

        public int getStatusCode()
        Returns the HTTP status code.
        Returns:
        the HTTP status code
      • getError

        public java.lang.String getError()
        Returns the error code.
        Returns:
        the error, may be null
      • getDescription

        public java.lang.String getDescription()
        Returns the error description.
        Returns:
        the description, may be null
      • toJSONString

        public java.lang.String toJSONString()
        Returns the JSON representation of the exception as defined in the OSBAPI specification.
        Returns:
        the JSON representation of the exception