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:
- BlackBerry API 4.3.0
ServerException
public ServerException(String message)
- Constructs a
ServerException
with the specified
detail message.
- Parameters:
message
- the detail message.- Since:
- BlackBerry API 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:
- BlackBerry API 4.3.0
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal