org.lastbamboo.common.sdp.api
Class SdpException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.lastbamboo.common.sdp.api.SdpException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
SdpFactoryException, SdpParseException

public class SdpException
extends Exception

The SdpException defines a general exception for the SDP classes to throw when they encounter a difficulty.

Version:
1.0
Author:
deruelle
See Also:
Serialized Form

Constructor Summary
SdpException()
          Creates new SdpException
SdpException(String message)
          Constructs a new SdpException with the message you specify.
SdpException(String message, Throwable rootCause)
          Constructs a new SdpException when the Codelet needs to throw an exception and include a message about another exception that interfered with its normal operation.
SdpException(Throwable rootCause)
          Constructs a new SdpException as a result of a system exception and uses the localized system exception message.
 
Method Summary
 Throwable getRootCause()
          Returns the Throwable system exception that makes this SdpException necessary.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SdpException

public SdpException()
Creates new SdpException


SdpException

public SdpException(String message)
Constructs a new SdpException with the message you specify.

Parameters:
message - a String specifying the text of the exception message

SdpException

public SdpException(String message,
                    Throwable rootCause)
Constructs a new SdpException when the Codelet needs to throw an exception and include a message about another exception that interfered with its normal operation.

Parameters:
message - a String specifying the text of the exception message
rootCause - the Throwable exception that interfered with the Codelet's normal operation, making this Codelet exception necessary

SdpException

public SdpException(Throwable rootCause)
Constructs a new SdpException as a result of a system exception and uses the localized system exception message.

Parameters:
rootCause - the system exception that makes this SdpException necessary
Method Detail

getRootCause

public Throwable getRootCause()
Returns the Throwable system exception that makes this SdpException necessary.

Returns:
Throwable


Copyright © 2013 LittleShoot. All Rights Reserved.