Error (Java)
The branch of Java's throwable types for serious problems, such as running out of memory, that ordinary application code should not try to recover from.
In more detail
Errors extend Throwable directly, not Exception, and are unchecked. Catching them usually hides a condition the whole process needs to report or restart from.
Related terms
- exception — An error object a program raises to stop normal flow and report that something went wrong.
- unchecked exception — An exception type, extending RuntimeException, that the compiler does not force callers to catch or declare.
Taught in
- Checked Versus Unchecked Exceptions — Modern Java: Virtual Threads & High-Throughput Services