Welcome Guest, Not a member yet? Register   Sign In
How can i handle my own try catch?
#1

[eluser]Sarwar CSE[/eluser]
I want like this

Code:
function Test(){
             try {
   msgon . open ();
  } catch ( Exception $ex ) {
   echo "Here i want to to show msgon is undifine but it goes to CI";
  }
}

if i wrote a try catch block then if error occurs then it will handle my catch block i don't want to handle it by CI handler .

How can i do this?

please advice me?
#2

[eluser]InsiteFX[/eluser]
Extend the ./system/core/Exceptions.php Class.




Theme © iAndrew 2016 - Forum software by © MyBB