Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * SdpException.java
  *
  * Created on December 18, 2001, 11:08 AM
  */
 
 package javax.sdp;
 
The SdpException defines a general exception for the SDP classes to throw when they encounter a difficulty.

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

   
    
Creates new SdpException
    public SdpException() {
         super();
    }

    
Constructs a new SdpException with the message you specify.

Parameters:
message a String specifying the text of the exception message
    
    public SdpException(String message){
         super(message);
    }
    
    
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
    
    public SdpException(String message,
    Throwable rootCause){
        super(rootCause.getMessage()+ . +message);
    }
    
    
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
    
    public SdpException(Throwable rootCause){
        super(rootCause.getLocalizedMessage());
    }
    
    
Returns the Throwable system exception that makes this SdpException necessary.

Returns:
Throwable
    
    public Throwable getRootCause(){
        return fillInStackTrace(); 
    }
    
New to GrepCode? Check out our FAQ X