Static
$storageMessage code repository. This object uses the message code as a key to manage that message.
Static
langSet the message language. Default is 'eng'. Setting this property changes the language used to return strings for message codes.
Static
errorUse the message code to create an Error object and make an exception. Use the given message code to query the storage for string messages, Create an 'Error' object by replacing the placeholder in the message ('$1', '$2', ...) with the values provided.
Message code.
Values to replace the placeholder in the message.
created 'Error' object.
Static
getReturns the string using the message code. Use the given message code to query the storage for string messages, Returns the placeholder in the message ('$1', '$2', ...) replaced with the value provided.
Message code.
Values to replace the placeholder in the message.
String for this message code.
Static
warnUse the message code to generate console.warn. Use the given message code to query the storage for string messages, Replace the placeholder('$1','$2',...) in the message with the value provided and output it as 'console.warn'.
Message code.
Values to replace the placeholder in the message.
Classes that manage messages and codes, which process message codes through static methods, Provides the ability to return messages or cause errors in a variety of ways.
Static