# Methods of Handling Errors

Whenever possible, the Intel® Fortran RTL does certain error handling, such as generating appropriate messages and taking necessary action to recover from errors. You can explicitly supplement or override default actions by using the following methods:

- To transfer control to error-handling code within the program, use the END, EOR, and ERR branch specifiers in I/O statements. See Using the END EOR and ERR Branch Specifiers.

- To identify Fortran-specific I/O errors based on the value of Intel® Fortran RTL error codes, use the I/O status specifier (IOSTAT) in I/O statements (or call the ERRSNS subroutine). See Using the IOSTAT Specifier and Fortran Exit Codes.

- Obtain system-level error codes by using the appropriate library routines.

- For certain error conditions, use the signal handling facility to change the default action to be taken.

Parent topic: Run-Time Errors

## See Also

Using the IOSTAT Specifier and Fortran Exit Codes
Using the END EOR and ERR Branch Specifiers