ME = MException(identifier, message)
ME = MException('last')
MException('reset')
| Parameter | Description |
|---|---|
| identifier | a string: error identifier. |
| message | a string. |
| Parameter | Description |
|---|---|
| ME | a MException object. |
All Nelson code that detects an error and throws an exception constructs an MException object.
identifier includes one or more component fields and a mnemonic field (example: 'nelson:matrix:empty')
ME = MException('last') return last exception.
MException('reset') clears last exception.
ME = MException('nelson:identifier', 'your error message.')
throw(ME)
| Version | Description |
|---|---|
| 1.0.0 | initial version |