java.rmi
Class ServerException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.io.IOException
|
+--java.rmi.RemoteException
|
+--java.rmi.ServerException
- public class ServerException
- extends RemoteException
ServerException is a subclass of RemoteException.
In web services, remote method in a service endpoint interface is required to throw the
standard java.rmi.RemoteException or its subclass. It is used
to map to a fault in the corresponding SOAP message.
A SOAP fault includes the faultcode sub-element. The
faultcode must be present in a SOAP fault and the
faultcode value must be a qualified name. A JAX-RPC
implementation must map a java.rmi.RemoteException
or its subclass to a standard faultcode. This enables
JAX-RPC implementations to interoperate in terms of handling of the
remote exception.
| SOAP faultcode Value |
Error Description |
Remote Exception Mapping |
| soap-env:Server |
Server cannot handle the message because of some temporary
condition. |
java.rmi.ServerException |
See
http://java.sun.com/j2se/1.3/docs/api/java/rmi/RemoteException.html for
a general description of RemoteException.
See
http://java.sun.com/j2se/1.3/docs/api/java/rmi/ServerException.html for
a general description of ServerException.
- Since:
- JDE 4.3.0
ServerException
public ServerException(String message)
- Constructs a
ServerException with the specified
detail message.
- Parameters:
message - the detail message.- Since:
- JDE 4.3.0
ServerException
public ServerException(String message,
Exception exception)
- Constructs a
ServerException with the specified
detail message and nested exception.
- Parameters:
message - the detail message.exception - the nested exception.- Since:
- JDE 4.3.0
Copyright 1999-2009 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.