Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Errors{
- public function displayError(Exception $e){
- $trace = $e->getTrace();
- if($trace[0]['class'] != ""){
- $class = $trace[0]['class'];
- $method = $trace[0]['function'];
- $file = $trace[0]['file'];
- $line = $trace[0]['line'];
- $error_message = $e->getMessage().
- "<br /> Class/Method : ".$class." <==> ".$method.
- "<br /> File : ".$file.
- "<br /> Line : ".$line;
- }
- return $error_message;
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement