|
@@ -198,11 +198,11 @@ class ExceptionRenderer
|
|
|
protected function _method(\Exception $exception)
|
|
protected function _method(\Exception $exception)
|
|
|
{
|
|
{
|
|
|
list(, $baseClass) = namespaceSplit(get_class($exception));
|
|
list(, $baseClass) = namespaceSplit(get_class($exception));
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
if (substr($baseClass, -9) === 'Exception') {
|
|
if (substr($baseClass, -9) === 'Exception') {
|
|
|
$baseClass = substr($baseClass, 0, -9);
|
|
$baseClass = substr($baseClass, 0, -9);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
$method = Inflector::variable($baseClass) ?: 'error500';
|
|
$method = Inflector::variable($baseClass) ?: 'error500';
|
|
|
return $this->method = $method;
|
|
return $this->method = $method;
|
|
|
}
|
|
}
|