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:
  • Constructor Details

    • HTTPException

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

    • getStatusCode

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