public class ParseException extends Exception
Constructor and Description |
---|
ParseException(Exception e)
Construct a new
ParseException with the specified cause. |
ParseException(Exception e,
int line,
int column)
Constructs a new exception with the specified cause, line number and column number.
|
ParseException(Exception e,
String file,
int line,
int column)
Construct a new
ParseException with the specified cause,
filename, line number and column number. |
ParseException(String message)
Construct a new
ParseException with the specified detail message. |
ParseException(String message,
Exception e)
Construct a new
ParseException with the specified detail message and cause. |
ParseException(String message,
Exception e,
int line,
int column)
Construct a new
ParseException with the specified detail message and cause,
line number and column number. |
ParseException(String message,
Exception e,
String file,
int line,
int column)
Construct a new
ParseException with the specified cause, detail message,
filename, line number and column number. |
ParseException(String message,
int line,
int column)
Construct a new
ParseException with the specified detail message,
line number and column number. |
Modifier and Type | Method and Description |
---|---|
int |
getColumnNumber()
Getter for the field
columnNumber . |
String |
getFileName()
Getter for the field
fileName . |
int |
getLineNumber()
Getter for the field
lineNumber . |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ParseException(Exception e)
ParseException
with the specified cause.
e
- the cause. This can be retrieved later by the Throwable.getCause()
method.
(A null value is permitted, and indicates that the cause is nonexistent or unknown.)public ParseException(String message)
ParseException
with the specified detail message.
message
- The detailed message.
This can later be retrieved by the Throwable.getMessage()
method.public ParseException(String message, Exception e)
ParseException
with the specified detail message and cause.
message
- The detailed message.
This can later be retrieved by the Throwable.getMessage()
method.e
- the cause. This can be retrieved later by the Throwable.getCause()
method.
(A null value is permitted, and indicates that the cause is nonexistent or unknown.)public ParseException(String message, int line, int column)
ParseException
with the specified detail message,
line number and column number.message
- The detailed message.
This can later be retrieved by the Throwable.getMessage()
method.line
- The line number where the parsing failed.
This can later be retrieved by the getLineNumber() method.column
- The column number where the parsing failed.
This can later be retrieved by the getColumnNumber() method.public ParseException(String message, Exception e, int line, int column)
ParseException
with the specified detail message and cause,
line number and column number.message
- The detailed message.
This can later be retrieved by the Throwable.getMessage()
method.e
- the cause. This can be retrieved later by the Throwable.getCause()
method.
(A null value is permitted, and indicates that the cause is nonexistent or unknown.)line
- The line number where the parsing failed.
This can later be retrieved by the getLineNumber() method.column
- The column number where the parsing failed.
This can later be retrieved by the getColumnNumber() method.public ParseException(Exception e, int line, int column)
e
- the cause. This can be retrieved later by the Throwable.getCause()
method.
(A null value is permitted, and indicates that the cause is nonexistent or unknown.)line
- The line number where the parsing failed.
This can later be retrieved by the getLineNumber() method.column
- The column number where the parsing failed.
This can later be retrieved by the getColumnNumber() method.public ParseException(Exception e, String file, int line, int column)
ParseException
with the specified cause,
filename, line number and column number.e
- the cause. This can be retrieved later by the Throwable.getCause()
method.
(A null value is permitted, and indicates that the cause is nonexistent or unknown.)file
- Name of a file that couldn't be parsed.
This can later be retrieved by the getFileName() method.line
- The line number where the parsing failed.
This can later be retrieved by the getLineNumber() method.column
- The column number where the parsing failed.
This can later be retrieved by the getColumnNumber() method.public ParseException(String message, Exception e, String file, int line, int column)
ParseException
with the specified cause, detail message,
filename, line number and column number.message
- The detailed message.
This can later be retrieved by the Throwable.getMessage()
method.e
- the cause. This can be retrieved later by the Throwable.getCause()
method.
(A null value is permitted, and indicates that the cause is nonexistent or unknown.)file
- Name of a file that couldn't be parsed.
This can later be retrieved by the getFileName() method.line
- The line number where the parsing failed.
This can later be retrieved by the getLineNumber() method.column
- The column number where the parsing failed.
This can later be retrieved by the getColumnNumber() method.public String getFileName()
Getter for the field fileName
.
ParseException
.public int getLineNumber()
Getter for the field lineNumber
.
ParseException
occurred.public int getColumnNumber()
Getter for the field columnNumber
.
ParseException
occurred.Copyright © 2005–2024 The Apache Software Foundation. All rights reserved.