public final class URITemplateParseException extends URITemplateException
The exception message will always contain the offset at which the error was encountered.
| Constructor and Description |
|---|
URITemplateParseException(String message,
CharBuffer buffer)
Alternate constructor
|
URITemplateParseException(String message,
CharBuffer buffer,
boolean previousChar)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getMessage() |
int |
getOffset() |
String |
getOriginalMessage() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic URITemplateParseException(String message, CharBuffer buffer, boolean previousChar)
message - the message to displaybuffer - the buffer in which the error occurredpreviousChar - whether the error relates to the current buffer
position or the character immediately preceding itpublic URITemplateParseException(String message, CharBuffer buffer)
This is equivalent to calling URITemplateParseException(String, CharBuffer, boolean) with the third
argument being false.
message - the message to displaybuffer - the buffer in which the error occurredpublic String getOriginalMessage()
public int getOffset()
public String getMessage()
getMessage in class Throwable