org.weborganic.furi
Class URITemplateSyntaxException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.IllegalArgumentException
                  extended by org.weborganic.furi.URITemplateSyntaxException
All Implemented Interfaces:
Serializable

public class URITemplateSyntaxException
extends IllegalArgumentException

Thrown to indicate that a URI Template or URI Template fragment does not follow the appropriate syntax.

This exception would typically be used for errors when parsing an expression supposed to follow the URI template syntax.

Version:
31 December 2008
Author:
Christophe Lauret
See Also:
Serialized Form

Constructor Summary
URITemplateSyntaxException(String input, String reason)
          Constructs an instance from the given input string, reason.
 
Method Summary
 String getInput()
          Returns the input string.
 String getReason()
          Returns the reason explaining why the input string could not be parsed.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

URITemplateSyntaxException

public URITemplateSyntaxException(String input,
                                  String reason)
Constructs an instance from the given input string, reason.

Parameters:
input - The input string.
reason - A string explaining why the input could not be parsed.
Method Detail

getInput

public String getInput()
Returns the input string.

Returns:
The input string.

getReason

public String getReason()
Returns the reason explaining why the input string could not be parsed.

Returns:
The reason string.