jreceiver.common.rec
Class RecException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--jreceiver.common.JRecException
|
+--jreceiver.common.rec.RecException
- All Implemented Interfaces:
- java.io.Serializable
- public class RecException
- extends jreceiver.common.JRecException
The base exception class for the JReceiver project.
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:06 $
- Author:
- Reed Esau
- See Also:
- Serialized Form
Fields inherited from class jreceiver.common.JRecException |
root_cause |
Constructor Summary |
RecException(java.lang.String message)
This will create an Exception with the given message. |
RecException(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 |
RecException
public RecException(java.lang.String message)
This will create an Exception
with the given message.
- Parameters:
message
- String
message indicating
the problem that occurred.
RecException
public RecException(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.