0

Try catch block not working in codeigniter.

try {
        echo inverse(5) . "\n";
    } catch (Exception $e) {
        echo 'Caught exception: ', $e->getMessage(), "\n";
        return;
    }

1 Answer 1

0

You need to add custom exception handling in codeigniter. Try with with following links :

  1. http://thecancerus.com/simple-way-to-add-global-exception-handling-in-codeigniter/

  2. CodeIgniter: Try Catch is not working in model class

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.