Closed darsain closed 11 years ago
Catching all error types in this environment is just a nightmare.
Console needs to catch an error, put it into a profile with:
$profile = Darsain\Console\Console::getProfile(array( 'error' => $error ));
And return the $profile object as JSON back to the client with 200 Status Code.
$profile
I was just not able to accomplish that. Barely kept my legs from breaking from all the logs thrown at them.
Error types to catch and properly handle:
The core files responsible for execution are (really simple, just 2 classes with a couple of methods):
Hey , thanks for this. Will check it out soon.
It feels hacky, but I think this might work.
None's complaining, seems to work well with everything I could throw at it ... I guess I'm gonna close this as fixed :)
Catching all error types in this environment is just a nightmare.
Console needs to catch an error, put it into a profile with:
And return the
$profile
object as JSON back to the client with 200 Status Code.I was just not able to accomplish that. Barely kept my legs from breaking from all the logs thrown at them.
Error types to catch and properly handle:
The core files responsible for execution are (really simple, just 2 classes with a couple of methods):