Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * SdpFactoryException.java
  *
  * Created on January 9, 2002, 6:44 PM
  */
 
 package javax.sdp;

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.

Author(s):
deruelle
Version:
1.0
public class SdpFactoryException extends  SdpException {

    
Chained exception.
    
    protected Exception ex;
    
    
Creates new SdpFactoryException
    public SdpFactoryException() {
        super();
    }

    
Create a new FactoryConfigurationException with the String specified as an error message.

Parameters:
msg msg - the detail message
    
    public SdpFactoryException(String msg){
         super(msg);
    }
    
    
Create a new FactoryConfigurationException with a given Exception base cause of the error.

Parameters:
ex ex - the "chained" exception
    
    public SdpFactoryException(Exception ex){
       super(ex.getMessage());
       this.=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
    
    public SdpFactoryException(String msg,
    Exception ex){
         super(msg);
         this.=ex;
    }
    
    
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.

Returns:
the error message
    
    public String getMessage(){
        if (super.getMessage() !=nullreturn super.getMessage();
        else 
            if (!=nullreturn .getMessage();
            else return null;
    }
    
    
Return the actual exception (if any) that caused this exception to be thrown.

Returns:
the encapsulated exception, or null if there is none
    
    public Exception getException(){
        return ;
    }
New to GrepCode? Check out our FAQ X