Package org.httprpc

Class WebServiceException

  • All Implemented Interfaces:
    java.io.Serializable

    public class WebServiceException
    extends java.io.IOException
    Thrown to indicate that a service operation returned an error.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      WebServiceException​(java.lang.String message, int statusCode)
      Constructs a new web service exception.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getStatusCode()
      Returns the HTTP status code returned by the service.
      • 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

      • WebServiceException

        public WebServiceException​(java.lang.String message,
                                   int statusCode)
        Constructs a new web service exception.
        Parameters:
        message - The error message returned by the service.
        statusCode - The HTTP status code returned by the service.
    • Method Detail

      • getStatusCode

        public int getStatusCode()
        Returns the HTTP status code returned by the service.
        Returns:
        The HTTP status code returned by the service.