function StackTraceFormatter::writeInlineHeader
1 call to StackTraceFormatter::writeInlineHeader()
- StackTraceFormatter::format in vendor/
open-telemetry/ sdk/ Common/ Exception/ StackTraceFormatter.php - Formats an exception in a java-like format.
File
-
vendor/
open-telemetry/ sdk/ Common/ Exception/ StackTraceFormatter.php, line 110
Class
- StackTraceFormatter
- @psalm-type Frame = array{ function: string, class: ?class-string, file: ?string, line: ?int, } @psalm-type Frames = non-empty-list<Frame>
Namespace
OpenTelemetry\SDK\Common\ExceptionCode
private static function writeInlineHeader(string &$s, Throwable $e) : void {
$s .= self::formatName($e::class);
if ($e->getMessage() !== '') {
$s .= ': ';
$s .= $e->getMessage();
}
}