Package org.mozilla.javascript
Interface ScriptRuntime.MessageProvider
-
- Enclosing class:
- ScriptRuntime
public static interface ScriptRuntime.MessageProviderThis is an interface defining a message provider. Create your own implementation to override the default error message provider.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetMessage(java.lang.String messageId, java.lang.Object[] arguments)Returns a textual message identified by the given messageId, parameterized by the given arguments.
-
-
-
Method Detail
-
getMessage
java.lang.String getMessage(java.lang.String messageId, java.lang.Object[] arguments)Returns a textual message identified by the given messageId, parameterized by the given arguments.- Parameters:
messageId- the identifier of the messagearguments- the arguments to fill into the message
-
-