Exception Interfaces, Classes, Traits and Enums ExceptionInterface Interface for exceptions. FormatException Thrown when a file has a syntax error. FormatExceptionContext PathException Thrown when a file does not exist or is not readable.