| PHP » GoLang | login |
            register |
            
            about | 
| GoLang Exception::__toString
                                request it (621)
                            GoLang replacement for PHP's Exception::__toString
                            [edit | history] 
                             Exception::__toString(PHP 5, PHP 7) Exception::__toString — String representation of the exception Description
   public string  Exception::__toString
    ( void
   ) Returns the string representation of the exception. ParametersThis function has no parameters. Return ValuesReturns the string representation of the exception. Examples
 Example #1 Exception::__toString() example 
<?phpThe above example will output something similar to: 
exception 'Exception' with message 'Some error message' in /home/bjori/tmp/ex.php:3
Stack trace:
#0 {main}
 | 
                    more
                     Most requested
 
                    more
                     Last requests
 |