类 MagicScriptError
java.lang.Object
org.ssssssss.script.MagicScriptError
All errors reported by the library go through the static functions of this class.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static voidCreate an error message based on the provided message and location, highlighting the location in the line on which the error happened.static voidCreate an error message based on the provided message and location, highlighting the location in the line on which the error happened.static voiderror(String message, TokenStream stream) Create an error message based on the provided message and stream, highlighting the line on which the error happened.static voidtransfer(MagicScriptRuntime runtime, Throwable t) static Throwable
-
构造器详细资料
-
MagicScriptError
public MagicScriptError()
-
-
方法详细资料
-
error
Create an error message based on the provided message and stream, highlighting the line on which the error happened. If the stream has more tokens, the next token will be highlighted. Otherwise the end of the source of the stream will be highlighted.
Throws a
RuntimeException -
error
Create an error message based on the provided message and location, highlighting the location in the line on which the error happened. Throws aMagicScriptException -
error
Create an error message based on the provided message and location, highlighting the location in the line on which the error happened. Throws aMagicScriptException -
unwrap
-
transfer
-