public class InvalidXPointerException extends Exception
Constructor and Description |
---|
InvalidXPointerException(String message,
String fragment)
Constructs a InvalidXPointerException with a message and fragment properties.
|
InvalidXPointerException(String message,
String fragment,
int startChar,
int endChar)
Constructs a InvalidXPointerException with a message and fragment properties,
and index to the cause inside the fragment.
|
InvalidXPointerException(String message,
String fragment,
int startChar,
int endChar,
Throwable cause)
Constructs a InvalidXPointerException with a message and fragment properties,
and index to the cause inside the fragment.
|
InvalidXPointerException(String message,
String fragment,
Throwable cause)
Constructs a InvalidXPointerException with a message and fragment properties.
|
Modifier and Type | Method and Description |
---|---|
Integer |
getEndChar()
Returns the endChar index of the cause of this error in the fragment.
|
String |
getFragment()
Returns the fragment String stored inside this exception.
|
Integer |
getStartChar()
Returns the startChar index of the cause of this error in the fragment.
|
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public InvalidXPointerException(String message, String fragment)
message
- a String message of error.fragment
- a String fragment of the cause.public InvalidXPointerException(String message, String fragment, Throwable cause)
message
- a String message of error.fragment
- a String fragment of the cause of the error.cause
- a Throwable which caused this exception to be thrown.public InvalidXPointerException(String message, String fragment, int startChar, int endChar)
message
- a String message of error.fragment
- a String fragment of the cause of the error.startChar
- a int char index to the start of the cause in the fragment.endChar
- a int char index to the end of the cause in the fragment.public InvalidXPointerException(String message, String fragment, int startChar, int endChar, Throwable cause)
message
- a String message of error.fragment
- a String fragment of the cause of the error.startChar
- an int char index to the start of the cause in the fragment.endChar
- an int char index to the end of the cause in the fragment.cause
- a Throwable which caused the exception to be thrown.public String getFragment()
public Integer getStartChar()
public Integer getEndChar()
Copyright © 2005–2019 Apache Software Foundation. All rights reserved.