Class ECMAErrors
java.lang.Object
com.oracle.js.parser.ECMAErrors
Helper class to throw various standard "ECMA error" exceptions such as Error, ReferenceError,
TypeError etc.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetMessage(String msgId, String... args) Get the exception message by placing the args in the resource defined by the resource tag.
-
Method Details
-
getMessage
Get the exception message by placing the args in the resource defined by the resource tag. This is visible to, e.g. theParsercan use it to generate compile time messages with the correct locale- Parameters:
msgId- the resource tag (message id)args- arguments to error string- Returns:
- the filled out error string
-