Exception Interfaces, Classes and Traits 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.