001/** 002 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 003 * 004 * Copyright (c) 2005 Sun Microsystems Inc. All Rights Reserved 005 * 006 * The contents of this file are subject to the terms 007 * of the Common Development and Distribution License 008 * (the License). You may not use this file except in 009 * compliance with the License. 010 * 011 * You can obtain a copy of the License at 012 * https://opensso.dev.java.net/public/CDDLv1.0.html or 013 * opensso/legal/CDDLv1.0.txt 014 * See the License for the specific language governing 015 * permission and limitations under the License. 016 * 017 * When distributing Covered Code, include this CDDL 018 * Header Notice in each file and include the License file 019 * at opensso/legal/CDDLv1.0.txt. 020 * If applicable, add the following below the CDDL Header, 021 * with the fields enclosed by brackets [] replaced by 022 * your own identifying information: 023 * "Portions Copyrighted [year] [name of copyright owner]" 024 * 025 * $Id: SOAPClientException.java,v 1.4 2008/06/25 05:43:34 qcheng Exp $ 026 * 027 */ 028 029package com.sun.identity.jaxrpc; 030 031/** 032 * An <code>SOAPClientException</code> is thrown when there are errors related 033 * to JAXRPC and SOAP methods. 034 * 035 * @supported.all.api 036 * @deprecated As of OpenSSO version 8.0 037 * {@link com.sun.identity.shared.jaxrpc.SOAPClientException} 038 */ 039public class SOAPClientException extends Exception { 040 041 private String message = null; 042 043 private String className = null; 044 045 /** 046 * Create <code>SOAPClientException</code> with no message. 047 */ 048 public SOAPClientException() { 049 super(); 050 } 051 052 /** 053 * Create <code>SOAPClientException</code> with a message. 054 * 055 * @param className 056 * The name of the class associated with exception. 057 */ 058 public SOAPClientException(String className) { 059 this.className = className; 060 } 061 062 /** 063 * Create <code>SOAPClientException</code> with a class name and message. 064 * 065 * @param className 066 * The name of the class associated with exception. 067 * @param exceptionMessage 068 * The message associated with exception. 069 */ 070 public SOAPClientException(String className, String exceptionMessage) { 071 super(exceptionMessage); 072 this.className = className; 073 message = exceptionMessage; 074 } 075 076 /** 077 * Method to obtain the class name. 078 * 079 * @return the class name 080 */ 081 public String getClassName() { 082 return className; 083 } 084 085 /** 086 * Method to obtain the message. 087 * 088 * @return message 089 */ 090 public String getMessage() { 091 return message; 092 } 093 094}