br.shob
Class CommLayerException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--br.shob.CommLayerException
All Implemented Interfaces:
Serializable

public class CommLayerException
extends Exception

This exception is generated when a communication problem occurs. It can be another exception thrown at lower levels, via the exception chaining mechanism.

Version:
$Revision: 1.6 $
Author:
crolmos, dukejeffrie
See Also:
Serialized Form
Created:
November 11, 2001

Constructor Summary
CommLayerException()
          Creates new CommLayerException without detail message.
CommLayerException(String msg)
          Constructs a CommLayerException with the specified detail message.
CommLayerException(String message, Throwable cause)
          Constructor for the CommLayerException object
CommLayerException(Throwable cause)
          Constructor for the CommLayerException object
 
Method Summary
 String toString()
          Unlike ordinary exceptions, this method calls the toString() method of the cause throwable if it is not null.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CommLayerException

public CommLayerException()
Creates new CommLayerException without detail message.


CommLayerException

public CommLayerException(String msg)
Constructs a CommLayerException with the specified detail message.

Parameters:
msg - the detail message.

CommLayerException

public CommLayerException(String message,
                          Throwable cause)
Constructor for the CommLayerException object

Parameters:
message - a detail message for the exception
cause - the cause of this exception

CommLayerException

public CommLayerException(Throwable cause)
Constructor for the CommLayerException object

Parameters:
cause - the cause of this exception
Method Detail

toString

public String toString()
Unlike ordinary exceptions, this method calls the toString() method of the cause throwable if it is not null.

Overrides:
toString in class Throwable
Returns:
A String that describes this exception