= Exceptions and Troubleshooting = [[PageOutline(2-5,,inline)]] == !BaseException == '''const ERR_GENERIC''' Generic Error === !ConfigurationException === '''ERR_BAD_CONFIGURATION''' Indicates a missing key or malformed value. '''ERR_MISSING_COMPONENT''' Thrown when a required component, file, or configuration section could not be found. === !LeptonException === '''ERR_EXTENSION_NOT_FOUND''' Thrown when an extension cannot be found. '''ERR_VIEW_NOT_FOUND''' Thrown when a view cannot be found. '''ERR_DEPENDENCY_NOT_FOUND''' Thrown when a required module or extension could not be found. '''ERR_GLOBAL_NOT_FOUND''' Thrown when an object could not be found in the global namespace. === !NavigationException === ==== !NotFoundException ==== ==== !AccessException ==== '''ERR_NOT_AUTHORIZED''' Thrown when a user is not authorized and attempts to view a secured page. == !ControllerException == '''ERR_CLASS_NOT_FOUND''' Lepton uses a relaxed loading of controllers to allow for specific controllers to be inserted through extensions or the application folder. Therefore a missing controller file won't throw an exception. However, if the matching class can't be found, an exception will be thrown. '''ERR_METHOD_NOT_FOUND''' This happens if you call on a controller that hasn't got neither the requested method nor the unknown method defined as public members. == !UploadsException == ''Since these exception codes are mapped against the PHP error codes, they are prefixed with `UPLOAD_`.'' '''UPLOAD_ERR_CANT_WRITE''' This happens if the upload folder is not writable. Check your permissions. '''UPLOAD_ERR_EXTENSION''' '''UPLOAD_ERR_FORM_SIZE''' '''UPLOAD_ERR_INI_SIZE''' The uploaded file is too large '''UPLOAD_ERR_NO_FILE''' There's no file uploaded. '''UPLOAD_ERR_NO_TMP_DIR''' There is no temporary directory available to upload the files into. Take a look at your PHP installation, and make sure that the upload directory is specified. '''UPLOAD_ERR_PARTIAL''' The upload didn't complete successfully.