/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* Represents a {@link WebServiceException} with
* localizable message.
*
* @author WS Development Team
*/
public abstract class JAXWSExceptionBase
extends WebServiceException implements Localizable {
//Don't worry about previous serialVersionUID = 4818235090198755494L;, this class was not serializable before.
/**
* @deprecated
* Should use the localizable constructor instead.
*/
super(findNestedException(args));
}
this(new NullLocalizable(message));
}
else return x;
}
/**
* Creates a new exception that wraps the specified exception.
*/
}
}
super(cause);
}
/**
* @serialData Default fields, followed by information in Localizable which comprises of.
* ResourceBundle name, then key and followed by arguments array.
* If there is no arguments array, then -1 is written. If there is a argument array (possible of zero
* length) then the array length is written as an integer, followed by each argument (Object).
* If the Object is serializable, the argument is written. Otherwise the output of Object.toString()
* is written.
*/
// We have to call defaultWriteObject first.
return;
}
// Write Object values for the parameters, if it is serializable otherwise write String form of it..
} else {
}
}
}
// We have to call defaultReadObject first.
if (len == -1) {
} else {
}
}
}
return null;
if(o instanceof Throwable)
return (Throwable)o;
return null;
}
}
/**
* Gets the default resource bundle name for this kind of exception.
* Used for {@link #JAXWSExceptionBase(String, Object[])}.
*/
//
// Localizable delegation
//
}
return msg.getArguments();
}
return msg.getResourceBundleName();
}
}