jreceiver.common.rpc
Class RpcException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--jreceiver.common.JRecException
|
+--jreceiver.common.rpc.RpcException
- All Implemented Interfaces:
- java.io.Serializable
- public class RpcException
- extends jreceiver.common.JRecException
The remote client exception class for the JReceiver project.
Used with XML-RPC and possibly other protocols as well.
This is the beginnings of the application of a Java
Idiom found at http://c2.com/cgi/wiki?HomogenizeExceptions
See also at http://c2.com/cgi/wiki?NestedExceptions
Create a single type of exception for each package
and only propagate exceptions of that type or some
sub-type out of methods in the package.
- Version:
- $Revision: 1.3 $ $Date: 2002/12/29 00:44:07 $
- Author:
- Reed Esau
- See Also:
- Serialized Form
Fields inherited from class jreceiver.common.JRecException |
root_cause |
Constructor Summary |
RpcException(java.lang.String message)
This will create an Exception with the given message. |
RpcException(java.lang.String message,
java.lang.Throwable rootCause)
This will create an Exception with the given message
and wrap another Exception . |
Methods inherited from class jreceiver.common.JRecException |
getFullMessage, getRootCause, getRootMessage, printStackTrace, printStackTrace, printStackTrace |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RpcException
public RpcException(java.lang.String message)
This will create an Exception
with the given message.
- Parameters:
message
- String
message indicating
the problem that occurred.
RpcException
public RpcException(java.lang.String message,
java.lang.Throwable rootCause)
This will create an Exception
with the given message
and wrap another Exception
. This is useful when
the originating Exception
should be held on to.
- Parameters:
message
- String
message indicating
the problem that occurred.exception
- Exception
that caused this
to be thrown.
Copyright © 2001-2002 Reed Esau, All Rights Reserved.