|
|
@@ -170,7 +170,22 @@ class LineFormatter extends NormalizerFormatter
|
|
|
|
|
|
private function formatException(\Throwable $e): string
|
|
|
{
|
|
|
- $str = '[object] (' . Utils::getClass($e) . '(code: ' . $e->getCode() . '): ' . $e->getMessage() . ' at ' . $e->getFile() . ':' . $e->getLine() . ')';
|
|
|
+ $str = '[object] (' . Utils::getClass($e) . '(code: ' . $e->getCode();
|
|
|
+ if ($e instanceof \SoapFault) {
|
|
|
+ if (isset($e->faultcode)) {
|
|
|
+ $str .= ' faultcode: ' . $e->faultcode;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (isset($e->faultactor)) {
|
|
|
+ $str .= ' faultactor: ' . $e->faultactor;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (isset($e->detail)) {
|
|
|
+ $str .= ' detail: ' . $e->detail;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ $str .= '): ' . $e->getMessage() . ' at ' . $e->getFile() . ':' . $e->getLine() . ')';
|
|
|
+
|
|
|
if ($this->includeStacktraces) {
|
|
|
$str .= "\n[stacktrace]\n" . $e->getTraceAsString() . "\n";
|
|
|
}
|