public class ScriptRuntimeException extends RuntimeException
| 构造器和说明 |
|---|
ScriptRuntimeException(ScriptException e) |
ScriptRuntimeException(String message) |
ScriptRuntimeException(String messageTemplate,
Object... params) |
ScriptRuntimeException(String message,
String fileName,
int lineNumber)
Creates a
ScriptException with message, filename and linenumber to be used in error messages. |
ScriptRuntimeException(String message,
String fileName,
int lineNumber,
int columnNumber)
ScriptException constructor specifying message, filename, line number and column number. |
ScriptRuntimeException(String message,
Throwable throwable) |
ScriptRuntimeException(String message,
Throwable throwable,
boolean enableSuppression,
boolean writableStackTrace) |
ScriptRuntimeException(Throwable e) |
ScriptRuntimeException(Throwable throwable,
String messageTemplate,
Object... params) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getColumnNumber()
Get the column number on which an error occurred.
|
String |
getFileName()
Get the source of the script causing the error.
|
int |
getLineNumber()
Get the line number on which an error occurred.
|
String |
getMessage()
Returns a message containing the String passed to a constructor as well as line and column numbers and filename if any of these are known.
|
public ScriptRuntimeException(Throwable e)
public ScriptRuntimeException(String message)
public ScriptRuntimeException(String message, Throwable throwable, boolean enableSuppression, boolean writableStackTrace)
public ScriptRuntimeException(Throwable throwable, String messageTemplate, Object... params)
public ScriptRuntimeException(String message, String fileName, int lineNumber)
ScriptException with message, filename and linenumber to be used in error messages.message - The string to use in the messagefileName - The file or resource name describing the location of a script error causing the ScriptException to be thrown.lineNumber - A line number describing the location of a script error causing the ScriptException to be thrown.public ScriptRuntimeException(String message, String fileName, int lineNumber, int columnNumber)
ScriptException constructor specifying message, filename, line number and column number.message - The message.fileName - The filenamelineNumber - the line number.columnNumber - the column number.public ScriptRuntimeException(ScriptException e)
public String getMessage()
getMessage 在类中 Throwablepublic int getLineNumber()
public int getColumnNumber()
public String getFileName()
Copyright © 2024. All rights reserved.