Errors are irrecoverable problems like OutOfMemoryError, StackOverFlowError … etc.
We never catch Errors with catch block, Even we catch Errors still program gets terminated.
If Error occurs then program terminates. Then we need to try to understand the reason for Error and try to upgrade system resources as per requirement and restart the application.