001/**
002 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003 *
004 * Copyright (c) 2006 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.2 2008/06/25 05:53:04 qcheng Exp $
026 *
027 */
028
029package com.sun.identity.shared.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 */
037public class SOAPClientException extends Exception {
038    private String message = null;
039    private String className = null;
040
041    /**
042     * Create <code>SOAPClientException</code> with no message.
043     */
044    public SOAPClientException() {
045        super();
046    }
047
048    /**
049     * Create <code>SOAPClientException</code> with a message.
050     * 
051     * @param className
052     *            The name of the class associated with exception.
053     */
054    public SOAPClientException(String className) {
055        this.className = className;
056    }
057
058    /**
059     * Create <code>SOAPClientException</code> with a class name and message.
060     * 
061     * @param className
062     *            The name of the class associated with exception.
063     * @param exceptionMessage
064     *            The message associated with exception.
065     */
066    public SOAPClientException(String className, String exceptionMessage) {
067        super(exceptionMessage);
068        this.className = className;
069        message = exceptionMessage;
070    }
071
072    /**
073     * Method to obtain the class name.
074     * 
075     * @return the class name
076     */
077    public String getClassName() {
078        return className;
079    }
080
081    /**
082     * Method to obtain the message.
083     * 
084     * @return message
085     */
086    public String getMessage() {
087        return message;
088    }
089
090}




























































Copyright © 2010-2017, ForgeRock All Rights Reserved.