lithium\core\ErrorHandler::_origin()
Determine frame from the stack trace where the error/exception was first generated.
Parameters
-
array
$stack
Stack trace from error/exception that was produced.
Returns
stringClass where error/exception was generated.
Source
protected static function _origin(array $stack) {
foreach ($stack as $frame) {
if (isset($frame['class'])) {
return trim($frame['class'], '\\');
}
}
}