|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException de.smartics.exceptions.AbstractCoreRuntimeException de.smartics.exceptions.i18n.AbstractLocalizedRuntimeException de.smartics.exceptions.i18n.message.ParseException
public class ParseException
This exception is thrown if a string cannot be parsed because information is missing or the format syntax is violated.
Field Summary | |
---|---|
protected int |
index The index within the input string where the parsing error occurred. |
protected String |
input The input that cannot be parsed. |
Fields inherited from class de.smartics.exceptions.i18n.AbstractLocalizedRuntimeException |
---|
localizedInfo |
Fields inherited from class de.smartics.exceptions.AbstractCoreRuntimeException |
---|
info |
Constructor Summary | |
---|---|
|
ParseException(ParseExceptionCode code, String input, int index) Constructor. |
|
ParseException(ParseExceptionCode code, String bundleBaseName, String input, int index) Constructor. |
protected |
ParseException(Throwable cause, ParseExceptionCode code, String input, int index) Constructor. |
protected |
ParseException(Throwable cause, ParseExceptionCode code, String bundleBaseName, String input, int index) Constructor. |
Method Summary | |
---|---|
int |
getIndex() Returns the index within the input string where the parsing error occurred. |
String |
getInput() Returns the input that cannot be parsed. |
Methods inherited from class de.smartics.exceptions.i18n.AbstractLocalizedRuntimeException |
---|
createMessages, createMessages, getBundleBaseName, getCauseTrail, getCauseTrail, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getMessage, getMessage, getMessage, getMessages, getMessages, getResourceKey, toString |
Methods inherited from class de.smartics.exceptions.AbstractCoreRuntimeException |
---|
getCause, getClassLoader, getCode, getId, getTime, truncateCause |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface de.smartics.exceptions.CoreException |
---|
getCause, getCode, getId, getStackTrace, getTime, setStackTrace, truncateCause |
Field Detail |
---|
@MessageParam(value="0") protected final String input
@MessageParam(value="1") protected final int index
Constructor Detail |
---|
public ParseException(ParseExceptionCode code, String bundleBaseName, String input, int index)
code
- the error or exception code of the exception.
bundleBaseName
- the fully qualified name of the bundle to use.
input
- the input that cannot be parsed.
index
- the index within the input string where the parsing error occurred.
ParseException(Throwable,ParseExceptionCode,java.lang.String,java.lang.String,int)
public ParseException(ParseExceptionCode code, String input, int index)
code
- the error or exception code of the exception.
input
- the input that cannot be parsed.
index
- the index within the input string where the parsing error occurred.
ParseException(ParseExceptionCode,String,java.lang.String,int)
protected ParseException(Throwable cause, ParseExceptionCode code, String bundleBaseName, String input, int index)
cause
- the cause (which is saved for later retrieval by the
AbstractCoreRuntimeException.getCause()
method). (A
null value is permitted, and indicates that the cause is nonexistent or unknown.)
code
- the error or exception code of the exception.
bundleBaseName
- the fully qualified name of the bundle to use.
input
- the input that cannot be parsed.
index
- the index within the input string where the parsing error occurred.
AbstractLocalizedRuntimeException.AbstractLocalizedRuntimeException(Throwable,de.smartics.exceptions.core.Code,String)
protected ParseException(Throwable cause, ParseExceptionCode code, String input, int index)
cause
- the cause (which is saved for later retrieval by the
AbstractCoreRuntimeException.getCause()
method). (A
null value is permitted, and indicates that the cause is nonexistent or unknown.)
code
- the error or exception code of the exception.
input
- the input that cannot be parsed.
index
- the index within the input string where the parsing error occurred.
ParseException(Throwable,ParseExceptionCode,String,String,int)
Method Detail |
---|
public String getInput()
public int getIndex()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |