The
Error
exception describes theproperties common to all standard
exceptions.
This exception serves two purposes:
- It is the
exception that clients in many programming languages can catch to handle all
standard exceptions. Typically those clients will display one or more of the
localizable messages from
Error.getMessages()
to a human. - It is the exception that methods can report when they need
to report some exception, but the exception doesn't fit into any other standard
exception, and in fact the only reasonable way for a client to react to the
exception is to display the message(s) to a human.