001: /*
002: * BEGIN_HEADER - DO NOT EDIT
003: *
004: * The contents of this file are subject to the terms
005: * of the Common Development and Distribution License
006: * (the "License"). You may not use this file except
007: * in compliance with the License.
008: *
009: * You can obtain a copy of the license at
010: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
011: * See the License for the specific language governing
012: * permissions and limitations under the License.
013: *
014: * When distributing Covered Code, include this CDDL
015: * HEADER in each file and include the License file at
016: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
017: * If applicable add the following below this CDDL HEADER,
018: * with the fields enclosed by brackets "[]" replaced with
019: * your own identifying information: Portions Copyright
020: * [year] [name of copyright owner]
021: */
022:
023: /*
024: * @(#)HttpErrorResponseException.java
025: * Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
026: *
027: * END_HEADER - DO NOT EDIT
028: */
029: /**
030: * HttpErrorResponseException.java
031: *
032: * SUN PROPRIETARY/CONFIDENTIAL.
033: * This software is the proprietary information of Sun Microsystems, Inc.
034: * Use is subject to license terms.
035: *
036: * Created on November 11, 2004, 1:18 PM
037: */package com.sun.jbi.binding.security;
038:
039: /**
040: *
041: * @author Sun Microsystems, Inc.
042: */
043: public class HttpErrorResponseException extends javax.jbi.JBIException {
044: /** The HTTP Error Message. */
045: private String mErrorMessage;
046:
047: /** The HTTP Error Code. */
048: private int mErrorCode;
049:
050: /**
051: * Creates a new instance of HttpErrorResponseException.
052: * @param message is a String describing the exception
053: */
054: public HttpErrorResponseException(String message) {
055: super (message);
056: }
057:
058: /**
059: * Creates a new instance of HttpErrorResponseException.
060: * @param message is a String describing the exception
061: * @param cause is the cause of the exception.
062: */
063: public HttpErrorResponseException(String message, Throwable cause) {
064: super (message, cause);
065: };
066:
067: /**
068: * @param cause is the Cause of the Exception
069: */
070: public HttpErrorResponseException(Throwable cause) {
071: super (cause);
072: }
073:
074: /**
075: * Getter for property errorMessage.
076: * @return Value of property errorMessage.
077: */
078: public String getErrorMessage() {
079: return mErrorMessage;
080: }
081:
082: /**
083: * Setter for property errorMessage.
084: * @param errorMessage New value of property errorMessage.
085: */
086: public void setErrorMessage(String errorMessage) {
087: mErrorMessage = errorMessage;
088: }
089:
090: /**
091: * Getter for property errorCode.
092: * @return Value of property errorCode.
093: */
094: public int getErrorCode() {
095: return mErrorCode;
096: }
097:
098: /**
099: * Setter for property errorCode.
100: * @param errorCode New value of property errorCode.
101: */
102: public void setErrorCode(int errorCode) {
103: mErrorCode = errorCode;
104: }
105:
106: }
|