com.github.fge.uritemplate
Class URITemplateParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.github.fge.uritemplate.URITemplateException
com.github.fge.uritemplate.URITemplateParseException
- All Implemented Interfaces:
- Serializable
public final class URITemplateParseException
- extends URITemplateException
Exception class on URI template parsing error
The exception message will always contain the offset at which the error
was encountered.
- See Also:
- Serialized Form
URITemplateParseException
public URITemplateParseException(String message,
CharBuffer buffer,
boolean previousChar)
- Constructor
- Parameters:
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 it
URITemplateParseException
public URITemplateParseException(String message,
CharBuffer buffer)
- Alternate constructor
This is equivalent to calling URITemplateParseException(String, CharBuffer, boolean) with the third
argument being false.
- Parameters:
message - the message to displaybuffer - the buffer in which the error occurred
getOriginalMessage
public String getOriginalMessage()
getOffset
public int getOffset()
getMessage
public String getMessage()
- Overrides:
getMessage in class Throwable