All exceptions in the File model now have an error code.