|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.lastbamboo.common.sdp.api.SdpException
org.lastbamboo.common.sdp.api.SdpParseException
public class SdpParseException
The SdpParseException encapsulates the information thrown when an error occurs during SDP parsing.
| Constructor Summary | |
|---|---|
SdpParseException(int lineNumber,
int charOffset,
String message)
Constructs a new SdpParseException when the parser needs to throw an exception indicating a parsing failure. |
|
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. |
|
SdpParseException(String message)
|
|
| Method Summary | |
|---|---|
int |
getCharOffset()
Returns the char offset where the error occured. |
int |
getLineNumber()
Returns the line number where the error occured |
String |
getMessage()
Returns the message stored when the exception was created. |
| Methods inherited from class org.lastbamboo.common.sdp.api.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 |
| Constructor Detail |
|---|
public SdpParseException(int lineNumber,
int charOffset,
String message,
Throwable rootCause)
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 messagerootCause - the Throwable exception that interfered with the Codelet's
normal operation, making this Codelet exception necessary.
public SdpParseException(int lineNumber,
int charOffset,
String message)
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 messagepublic SdpParseException(String message)
| Method Detail |
|---|
public int getLineNumber()
public int getCharOffset()
public String getMessage()
getMessage in class Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||