javax.sdp
Class SdpFactoryException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.sdp.SdpException
              extended by javax.sdp.SdpFactoryException
All Implemented Interfaces:
Serializable

public class SdpFactoryException
extends SdpException

The SdpFactoryException encapsulates the information thrown when a problem with configuration with the SdpFactory exists. Please refer to IETF RFC 2327 for a description of SDP.

Version:
1.0
Author:
deruelle
See Also:
Serialized Form

Field Summary
protected  Exception ex
          Chained exception.
 
Constructor Summary
SdpFactoryException()
          Creates new SdpFactoryException
SdpFactoryException(Exception ex)
          Create a new FactoryConfigurationException with a given Exception base cause of the error.
SdpFactoryException(String msg)
          Create a new FactoryConfigurationException with the String specified as an error message.
SdpFactoryException(String msg, Exception ex)
          Create a new FactoryConfigurationException with the given Exception base cause and detail message.
 
Method Summary
 Exception getException()
          Return the actual exception (if any) that caused this exception to be thrown.
 String getMessage()
          Return the message (if any) for this error.
 
Methods inherited from class javax.sdp.SdpException
getRootCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ex

protected Exception ex
Chained exception.

Constructor Detail

SdpFactoryException

public SdpFactoryException()
Creates new SdpFactoryException


SdpFactoryException

public SdpFactoryException(String msg)
Create a new FactoryConfigurationException with the String specified as an error message.

Parameters:
msg - msg - the detail message

SdpFactoryException

public SdpFactoryException(Exception ex)
Create a new FactoryConfigurationException with a given Exception base cause of the error.

Parameters:
ex - ex - the "chained" exception

SdpFactoryException

public SdpFactoryException(String msg,
                           Exception ex)
Create a new FactoryConfigurationException with the given Exception base cause and detail message.

Parameters:
msg - msg - the detail message
ex - ex - the "chained" exception
Method Detail

getMessage

public String getMessage()
Return the message (if any) for this error. If there is no message for the exception and there is an encapsulated exception then the message of that exception will be returned.

Overrides:
getMessage in class Throwable
Returns:
the error message

getException

public Exception getException()
Return the actual exception (if any) that caused this exception to be thrown.

Returns:
the encapsulated exception, or null if there is none


Copyright © 2012. All Rights Reserved.