Serializable
public final class PromptChoicesSyntaxException extends IllegalArgumentException
Constructor | Description |
---|---|
PromptChoicesSyntaxException(int errorOffset) |
Constructs an instance with the specified error offset.
|
PromptChoicesSyntaxException(int errorOffset,
Throwable cause) |
Constructs an instance with the specified error offset and cause.
|
PromptChoicesSyntaxException(String message,
int errorOffset) |
Constructs an instance with the specified detail message and error offset.
|
PromptChoicesSyntaxException(String message,
int errorOffset,
Throwable cause) |
Constructs an instance with the specified detail message, error offset,
and cause.
|
Modifier and Type | Method | Description |
---|---|---|
int |
errorOffset() |
Returns the zero-based character position of the syntax error.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public PromptChoicesSyntaxException(int errorOffset)
errorOffset
- the zero-based character offset from the beginning of
the choices string to the location of the errorpublic PromptChoicesSyntaxException(String message, int errorOffset)
message
- the detail message of this
exception; may be null
errorOffset
- the zero-based character offset from the beginning of
the choices string to the location of the errorpublic PromptChoicesSyntaxException(int errorOffset, Throwable cause)
errorOffset
- the zero-based character offset from the beginning of
the choices string to the location of the errorcause
- the cause of this
exception; may be null
public PromptChoicesSyntaxException(String message, int errorOffset, Throwable cause)
message
- the detail message of this
exception; may be null
errorOffset
- the zero-based character offset from the beginning of
the choices string to the location of the errorcause
- the cause of this
exception; may be null