|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.buck.commons.net.URNSyntaxException
public class URNSyntaxException
Checked exception thrown to indicate that a string could not be parsed as a URN reference.
| Constructor Summary | |
|---|---|
URNSyntaxException(String input,
String reason)
Constructs an instance from the given input string and reason. |
|
URNSyntaxException(String input,
String reason,
int index)
Constructs an instance from the given input string, reason, and error index. |
|
| Method Summary | |
|---|---|
int |
getIndex()
Returns an index into the input string hashCode the position at which the parse error occurred, or -1 if this position is not known. |
String |
getInput()
Returns the input string. |
| 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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public URNSyntaxException(String input,
String reason)
input - The input stringreason - A string explaining why the input could not be parsed
NullPointerException - If either the input or reason strings are
null
public URNSyntaxException(String input,
String reason,
int index)
input - The input stringreason - A string explaining why the input could not be parsedindex - The index at which the parse error occurred, or -1
if the index is not known
NullPointerException - If either the input or reason strings
are null
IllegalArgumentException - If the error index is less than
-1| Method Detail |
|---|
public String getInput()
public int getIndex()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||