Lines Matching refs:str
149 $str = $this->formatException($e);
153 $str .= "\n[previous exception] " . $this->formatException($previous);
157 return $str;
176 protected function replaceNewlines(string $str): string argument
179 if (0 === strpos($str, '{')) {
180 return str_replace(array('\r', '\n'), array("\r", "\n"), $str);
183 return $str;
186 return str_replace(["\r\n", "\r", "\n"], ' ', $str);
191 $str = '[object] (' . Utils::getClass($e) . '(code: ' . $e->getCode();
194 $str .= ' faultcode: ' . $e->faultcode;
198 $str .= ' faultactor: ' . $e->faultactor;
203 $str .= ' detail: ' . $e->detail;
205 $str .= ' detail: ' . $this->toJson($e->detail, true);
209 $str .= '): ' . $e->getMessage() . ' at ' . $e->getFile() . ':' . $e->getLine() . ')';
212 $str .= "\n[stacktrace]\n" . $e->getTraceAsString() . "\n";
215 return $str;