Skip to content

Error Exceptions

Kishor Neupane edited this page Feb 23, 2025 · 3 revisions

Error Code Category Table. Use this table to identify the error/exception cause. This provides a broad reasons for the error/exception thrown by the package.


Exception Category Exception Type:Exception Code Source Function Name Message Thrown
Class Not Found FileException: 1001001 NGFramer\NGFramerPHPBase\Application getAppRegistry AppRegistry.php file not found.
Class Not Found DependencyException: 1001002 NGFramer\NGFramerPHPBase\init (Global Scope) The 'ngframer.php' dependency is missing. This project cannot function independently.
Variable Not Defined ConfigurationException: 1002001 NGFramer\NGFramerPHPBase\controller\Controller render The following appType does not exists.
Variable Not Defined ConfigurationException: 1002002 NGFramer\NGFramerPHPBase\init (Global Scope) The 'appMode' property must be set to either 'development' or 'production' in the 'ApplicationConfig' class.
General Errors CountryException: 1003001 NGFramer\NGFramerPHPBase\utilities\UtilCountry getCallingCode Invalid country code. The country does not exist.
General Errors DateTimeException: 1004001 NGFramer\NGFramerPHPBase\utilities\UtilDatetime calculateAge Invalid birthdate. Either the date is not valid or the date is in the future.
General Errors MiddlewareException: 1004001 NGFramer\NGFramerPHPBase\Router handleRoute Error processing middleware for route '{$path}'. Error: {$e->getMessage()}
Class Not Found MiddlewareException: 1004002 NGFramer\NGFramerPHPBase\Router handleRoute Invalid middleware: '{$middleware}'. It must be an instance of the 'Middleware' class.
General Errors MiddlewareException: 1004003 NGFramer\NGFramerPHPBase\middleware\MiddlewareManager processMiddleware Invalid middleware
Class Not Found MiddlewareException: 1004004 NGFramer\NGFramerPHPBase\middleware\MiddlewareManager setMiddlewareMap Class $middlewareClass is not a subclass of Middleware
General Errors MiddlewareException: 1004005 NGFramer\NGFramerPHPBase\middleware\MiddlewareManager setGlobalMiddleware Invalid middleware: $middlewareClass
General Errors MiddlewareException: 1004006 NGFramer\NGFramerPHPBase\middleware\MiddlewareManager setGlobalMiddleware Invalid middleware: $middlewareClass
General Errors AppException: 1005001 NGFramer\NGFramerPHPBase\utilities\UtilFunction getFunctionNameFromClosure Error in getting function name from closure :
General Errors AppException: 1005002 NGFramer\NGFramerPHPBase\utilities\UtilFunction extractFuncData Invalid function format: $inputString
Field Validation Errors ModelException: 1020101 NGFramer\NGFramerPHPBase\model\DbModel insert The following field doesn't exist in the database model. $insertKey.
Field Validation Errors ModelException: 1020102 NGFramer\NGFramerPHPBase\model\DbModel insert The following field can't be inserted manually. $insertKey.
Field Validation Errors ModelException: 1020103 NGFramer\NGFramerPHPBase\model\DbModel select The field '$field' doesn't exists in the database model.
Field Validation Errors ModelException: 1020104 NGFramer\NGFramerPHPBase\model\DbModel update The field $updateKey doesn't exist in the database model.
Field Validation Errors ModelException: 1020105 NGFramer\NGFramerPHPBase\model\DbModel update The field $updateKey cannot be mass updated, try using updateOne().
Field Validation Errors ModelException: 1020106 NGFramer\NGFramerPHPBase\model\DbModel update Update restricted for all records. Provide condition to select the data to update.
Field Validation Errors ModelException: 1020107 NGFramer\NGFramerPHPBase\model\DbModel delete Can't delete pile of data. Provide condition to delete the data set.
Field Validation Errors ModelException: 1020108 NGFramer\NGFramerPHPBase\model\DbModel selectOne The field '$field' doesn't exist in the database model.
Field Validation Errors ModelException: 1020109 NGFramer\NGFramerPHPBase\model\DbModel updateOne The field $updateKey doesn't exist in the database model.
Field Validation Errors ModelException: 1020110 NGFramer\NGFramerPHPBase\model\DbModel updateOne The field $updateKey cannot be updated.
Field Validation Errors ModelException: 1020111 NGFramer\NGFramerPHPBase\model\DbModel updateOne Can't update pile of data. Provide condition to update the data set.
Field Validation Errors ModelException: 1020112 NGFramer\NGFramerPHPBase\model\DbModel deleteOne Can't delete pile of data. Provide condition to delete the data set.
Database Structure Errors ModelException: 1020201 NGFramer\NGFramerPHPBase\model\DbModel insert Unable to insert data in a view structure.
Database Structure Errors ModelException: 1020202 NGFramer\NGFramerPHPBase\model\DbModel update Unable to update data in a view structure.
Database Structure Errors ModelException: 1020203 NGFramer\NGFramerPHPBase\model\DbModel delete Unable to delete data in a view structure.
Database Structure Errors ModelException: 1020204 NGFramer\NGFramerPHPBase\model\DbModel updateOne Unable to update data in a view structure.
Database Structure Errors ModelException: 1020205 NGFramer\NGFramerPHPBase\model\DbModel deleteOne Unable to delete data in a view structure.
Data Retrieval Errors ModelException: 1020301 NGFramer\NGFramerPHPBase\model\DbModel selectOne No data found in the database.
Data Validation Errors AppException: 1021001 NGFramer\NGFramerPHPBase\Helper\FieldsValidationHelper validateRequired Missing required field $fieldName error
Data Validation Errors AppException: 1021002 NGFramer\NGFramerPHPBase\Helper\FieldsValidationHelper validateRequired Missing required field $fieldName error
Data Validation Errors AppException: 1021003 NGFramer\NGFramerPHPBase\Helper\FieldsValidationHelper typeValidation Invalid field value type.
Data Validation Errors AppException: 1021004 NGFramer\NGFramerPHPBase\Helper\FieldsValidationHelper typeValidation Invalid field value type.
Data Validation Errors AppException: 1021005 NGFramer\NGFramerPHPBase\Helper\FieldsValidationHelper typeValidation Invalid field value type.
Data Validation Errors AppException: 1021006 NGFramer\NGFramerPHPBase\Helper\FieldsValidationHelper typeValidation Invalid field value type.

As for now, this is not stable and might change later in future. Once we reach stability, we shall remove the end message. Thank you for your understanding.

Clone this wiki locally