public class LazyParsingException extends RuntimeException
This is an unchecked exception so that apps already written using JAIN SIP will still work.
Applications that catch these exceptions can try to decode the offending
header themselves by using the getUnparsedHeaderLine
method to
get the unparsed string value of the header.
Constructor and Description |
---|
LazyParsingException(String message,
String unparsedHeaderLine) |
LazyParsingException(String message,
String headerName,
String unparsedHeaderLine) |
LazyParsingException(String message,
String headerName,
Throwable cause,
String unparsedHeaderLine) |
LazyParsingException(String message,
Throwable cause,
String unparsedHeaderLine) |
Modifier and Type | Method and Description |
---|---|
String |
getHeaderName()
Get the name of the header that failed to parse.
|
String |
getMessage() |
String |
getUnparsedHeaderLine()
Get the content of the header line that failed to parse
|
boolean |
hasHeaderName() |
void |
setHeaderName(String name) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public LazyParsingException(String message, Throwable cause, String unparsedHeaderLine)
public LazyParsingException(String message, String headerName, String unparsedHeaderLine)
public boolean hasHeaderName()
public String getHeaderName()
public void setHeaderName(String name)
public String getUnparsedHeaderLine()
public String getMessage()
getMessage
in class Throwable