TraceContext.Error.show: def of bend-trace-context@0.2.0.0 Import: import bend-trace-context@0.2.0.0/trace_context.bend as TraceContext Lines 1562-1588 of bend-trace-context@0.2.0.0/trace_context.bend: https://jend.leeeet.dev/read.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&start_line=1562&end_line=1588 import Base # The name of a codec or ID error, with its offset or, for an unsupported # version, its two digits. ZeroId names the field: ZeroTraceId, ZeroParentId or # ZeroSpanId. def Error.show(error: Error) -> String: match error: case UnexpectedEnd{offset}: "UnexpectedEnd at " ++ Nat.show(offset) case InvalidHex{offset}: "InvalidHex at " ++ Nat.show(offset) case InvalidByte{offset}: "InvalidByte at " ++ Nat.show(offset) case ExpectedSeparator{offset}: "ExpectedSeparator at " ++ Nat.show(offset) case TrailingInput{}: "TrailingInput" case ForbiddenVersion{}: "ForbiddenVersion" case UnsupportedVersion{version}: "UnsupportedVersion " ++ version case ZeroId{TraceIdField{}}: "ZeroTraceId" case ZeroId{ParentIdField{}}: "ZeroParentId" case ZeroId{SpanIdField{}}: "ZeroSpanId" case ControlCharacter{offset}: "ControlCharacter at " ++ Nat.show(offset) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.show https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=Error https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=Field