Module java.xml.ws

Class HTTPException

  • All Implemented Interfaces:
    Serializable


    public class HTTPException
    extends ProtocolException
    The HTTPException exception represents a XML/HTTP fault.

    Since there is no standard format for faults or exceptions in XML/HTTP messaging, only the HTTP status code is captured.

    Since:
    1.6, JAX-WS 2.0
    See Also:
    Serialized Form
    • Constructor Detail

      • HTTPException

        public HTTPException​(int statusCode)
        Constructor for the HTTPException
        Parameters:
        statusCode - int for the HTTP status code
    • Method Detail

      • getStatusCode

        public int getStatusCode​()
        Gets the HTTP status code.
        Returns:
        HTTP status code