- It's a Trait:
- Direct known classes using the trait:\core\WAError\core\WAException
The trait \core\WAThrowable
is a trait that contains the basic tools of a throwable error or exception in PHP 7 and 5.4+, mainly to print the backtrace of the stack.
For PHP 5.3-, the toString method is implemented directly into the classes.
All the classes that use this trait will gain the following method:
__toString to print the traceback messages.
3.1. Methods:public string __toString()
Returns a formated HTML string containing the description and traceback of the error in a table.