diff --git a/app/Controllers/ExcelExportController.php b/app/Controllers/ExcelExportController.php index 4cf8046..6945348 100644 --- a/app/Controllers/ExcelExportController.php +++ b/app/Controllers/ExcelExportController.php @@ -1691,7 +1691,7 @@ class ExcelExportController extends ResourceController $data[] = array_values($row); } - } catch (DatabaseException $e) { + } catch (\CodeIgniter\Database\Exceptions\DatabaseException $e) { log_message('error', 'Database Error during Excel fetch: ' . $e->getMessage()); // Re-throw the exception so it is caught by the main function's catch block throw $e; @@ -1762,7 +1762,7 @@ class ExcelExportController extends ResourceController $data[] = array_values($row); } - } catch (DatabaseException $e) { + } catch (\CodeIgniter\Database\Exceptions\DatabaseException $e) { log_message('error', 'Database Error during Excel fetch: ' . $e->getMessage()); // Re-throw the exception so it is caught by the main function's catch block throw $e; @@ -1832,7 +1832,7 @@ class ExcelExportController extends ResourceController $data[] = array_values($row); } - } catch (DatabaseException $e) { + } catch (\CodeIgniter\Database\Exceptions\DatabaseException $e) { log_message('error', 'Database Error during Excel fetch: ' . $e->getMessage()); // Re-throw the exception so it is caught by the main function's catch block throw $e; @@ -1910,7 +1910,7 @@ class ExcelExportController extends ResourceController $data[] = array_values($row); } - } catch (DatabaseException $e) { + } catch (\CodeIgniter\Database\Exceptions\DatabaseException $e) { log_message('error', 'Database Error during Excel fetch: ' . $e->getMessage()); // Re-throw the exception so it is caught by the main function's catch block throw $e; @@ -2045,7 +2045,7 @@ class ExcelExportController extends ResourceController $data[] = array_values($row); } - } catch (DatabaseException $e) { + } catch (\CodeIgniter\Database\Exceptions\DatabaseException $e) { log_message('error', 'Database Error during Excel fetch: ' . $e->getMessage()); // Re-throw the exception so it is caught by the main function's catch block throw $e; @@ -2360,7 +2360,7 @@ class ExcelExportController extends ResourceController $data[] = array_values($row); } - } catch (DatabaseException $e) { + } catch (\CodeIgniter\Database\Exceptions\DatabaseException $e) { log_message('error', 'Database Error during Excel fetch: ' . $e->getMessage()); // Re-throw the exception so it is caught by the main function's catch block throw $e; @@ -2471,7 +2471,7 @@ class ExcelExportController extends ResourceController per.endorsement_description, per.financia_or_non_financial, per.endorsement_premium, - per.commission_amount, + per.commission_amount