1 /* 2 * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 3 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. 4 */ 5 6 package javax.xml.ws.http; 7 8 9 /** The <code>HTTPException</code> exception represents a 10 * XML/HTTP fault. 11 * 12 * <p>Since there is no standard format for faults or exceptions 13 * in XML/HTTP messaging, only the HTTP status code is captured. 14 * 15 * @since JAX-WS 2.0 16 **/ 17 public class HTTPException extends javax.xml.ws.ProtocolException { 18 19 private int statusCode; 20 21 /** Constructor for the HTTPException 22 * @param statusCode <code>int</code> for the HTTP status code 23 **/ 24 public HTTPException(int statusCode) { 25 super(); 26 this.statusCode = statusCode; 27 } 28 29 /** Gets the HTTP status code. 30 * 31 * @return HTTP status code 32 **/ 33 public int getStatusCode() { 34 return statusCode; 35 } 36 } 37