error.hErrorException class and the
error function.
| Class | |
| ErrorException | This exception is thrown by calls to the error function, which makes it possible for clients to respond to error conditions. |
| Function | |
| error(msg) | Signals an error condition in a program by throwing an ErrorException with the specified message. |
void error(string str);
ErrorException with the specified message.
Usage:
error(msg);