com.github.fge.uritemplate
Class URITemplateParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.github.fge.uritemplate.URITemplateException
              extended by 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

Constructor Summary
URITemplateParseException(String message, CharBuffer buffer)
          Alternate constructor
URITemplateParseException(String message, CharBuffer buffer, boolean previousChar)
          Constructor
 
Method Summary
 String getMessage()
           
 int getOffset()
           
 String getOriginalMessage()
           
 
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

URITemplateParseException

public URITemplateParseException(String message,
                                 CharBuffer buffer,
                                 boolean previousChar)
Constructor

Parameters:
message - the message to display
buffer - the buffer in which the error occurred
previousChar - 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 display
buffer - the buffer in which the error occurred
Method Detail

getOriginalMessage

public String getOriginalMessage()

getOffset

public int getOffset()

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable