Create a new SfdxErrorConfig.
The name of the package.
The message bundle.
The error message key.
The tokens to use when getting the error message.
The name of the bundle
The error key
The name of the package
Add an error action to assist the user with a resolution.
The action key in the message bundle.
For convenience this object is returned.
Get the action messages using messages.getMessage.
List of action messages.
Get the error message using messages.getMessage.
Load the messages using Messages.loadMessages.
Returns the loaded messages.
Remove all actions from this error config. Useful when reusing SfdxErrorConfig. for other error messages within the same bundle.
For convenience this object is returned.
Set the error key.
The key to set.
For convenience this object is returned.
Set the error tokens.
The tokens to set.
For convenience this object is returned.
A class to manage all the keys and tokens for a message bundle to use with SfdxError.
SfdxError.create(new SfdxErrorConfig('MyPackage', 'apex', 'runTest').addAction('apexErrorAction1', [className]));