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 SdpParseException encapsulates the information thrown when an error occurs during SDP parsing.

Author(s):
deruelle
Version:
1.0
public class SdpParseException extends SdpException {
   
    private int lineNumber;
    private int charOffset;
    
    
Constructs a new SdpParseException when the parser needs to throw an exception indicating a parsing failure.

Parameters:
lineNumber SDP line number that caused the exception.
charOffset offset of the characeter that caused the exception.
message a String containing the text of the exception message
rootCause the Throwable exception that interfered with the Codelet's normal operation, making this Codelet exception necessary.
    
    public SdpParseException(int lineNumber,int charOffset,String message,
    Throwable rootCause){
        super(message,rootCause);
        this.=lineNumber;
        this.=charOffset;
    }
    
     
Constructs a new SdpParseException when the parser needs to throw an exception indicating a parsing failure.

Parameters:
lineNumber SDP line number that caused the exception.
charOffset offset of the characeter that caused the exception.
message a String containing the text of the exception message
    public SdpParseException(int lineNumber,int charOffset,String message){
        super(message);
        this.=lineNumber;
        this.=charOffset;
    }
    
    
Returns the line number where the error occured

Returns:
the line number where the error occured
    
    public int getLineNumber(){
        return ;
    }
    
    
Returns the char offset where the error occured.

Returns:
the char offset where the error occured.
    
    public int getCharOffset(){
        return ;
    }
    
    
    
Returns the message stored when the exception was created.

Returns:
the message stored when the exception was created.
    
    public String getMessage() {
        return super.getMessage();
    }
    
New to GrepCode? Check out our FAQ X