FileDocCategorySizeDatePackage
SdpParseException.javaAPI DocphoneME MR2 API (J2ME)3367Wed May 02 18:00:42 BST 2007gov.nist.javax.sdp

SdpParseException

public class SdpParseException extends SdpException
The SdpParseException encapsulates the information thrown when an error occurs during SDP parsing.
version
1.0

Fields Summary
private int
lineNumber
Current line in parsed text.
private int
charOffset
Current character offset in the parse buffer.
Constructors Summary
public SdpParseException(int lineNumber, int charOffset, String message, Throwable rootCause)
Constructs a new SdpParseException when the parser needs to throw an exception indicating a parsing failure.

param
lineNumber SDP line number that caused the exception.
param
charOffset offset of the character that caused the exception.
param
message a String containing the text of the exception message
param
rootCause the Throwable exception that interfered with the Codelet's normal operation, making this Codelet exception necessary.

 
	super(message, rootCause);
	this.lineNumber = lineNumber;
	this.charOffset = charOffset;
    
public SdpParseException(int lineNumber, int charOffset, String message)
Constructs a new SdpParseException when the parser needs to throw an exception indicating a parsing failure.

param
lineNumber SDP line number that caused the exception.
param
charOffset offset of the characeter that caused the exception.
param
message a String containing the text of the exception message

	super(message);
	this.lineNumber = lineNumber;
	this.charOffset = charOffset;
    
Methods Summary
public intgetCharOffset()
Returns the char offset where the error occured.

return
the char offset where the error occured.

	return charOffset;
    
public intgetLineNumber()
Returns the line number where the error occured.

return
the line number where the error occured

	return lineNumber;
    
public java.lang.StringgetMessage()
Returns the message stored when the exception was created.

return
the message stored when the exception was created.

	return super.getMessage();