49 return get_class($this->exception);
57 return $this->exception->getMessage();
66 return $this->previousExceptionInspector || $this->exception->getPrevious();
76 if ($this->previousExceptionInspector ===
null) {
77 $previousException = $this->exception->getPrevious();
79 if ($previousException) {
80 $this->previousExceptionInspector =
new Inspector($previousException);
94 if ($this->frames ===
null) {
95 $frames = $this->exception->getTrace();
105 array_unshift(
$frames, $firstFrame);
112 $newFrames = clone $previousInspector->getFrames();
114 if (isset($newFrames[0])) {
115 $newFrames[0]->addComment(
116 $previousInspector->getExceptionMessage(),
120 $newFrames->prependFrames($outerFrames->topDiff($newFrames));
121 $this->frames = $newFrames;
Wraps ErrorException; mostly used for typing (at least now) to easily cleanup the stack trace of redu...
Exposes a fluent interface for dealing with an ordered list of stack-trace frames.
getFrameFromError(ErrorException $exception)
Given an error, generates an array in the format generated by ErrorException.
getPreviousExceptionInspector()
Returns an Inspector for a previous Exception, if any.
hasPreviousException()
Does the wrapped Exception has a previous Exception?
getFrames()
Returns an iterator for the inspected exception's frames.
$previousExceptionInspector
getFrameFromException(Exception $exception)
Given an exception, generates an array in the format generated by Exception::getTrace()
__construct(Exception $exception)
Whoops - php errors for cool kids.