Jump to content

[SOLVED] Finding a viable error handling mechanism


Recommended Posts

I have been researching through ways to efficiently handle php exceptions like database connection lost, web service not available etc.

 

I have came up with some ways to handle error in application:

 

1) An global exception class

 

class GlobalException extends Exception {

    public $mErrors; // instance of GlobalErrors

}

 

class GlobalErrors {

    public $mErrors;

 

 

}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.