Next: The throws clause
Up: Exceptions
Previous: Creating exception types
Contents
- Exceptions are thrown using the throw statement.
- Exceptions are objects, so they must be created (with new) before being thrown.
Next: The throws clause
Up: Exceptions
Previous: Creating exception types
Contents