(input: string, message?: string)
| 30 | |
| 31 | /** @internal */ |
| 32 | export const EncodeException = (input: string, message?: string): Encoding.EncodeException => { |
| 33 | const out: Mutable<Encoding.EncodeException> = { |
| 34 | _tag: "EncodeException", |
| 35 | [EncodeExceptionTypeId]: EncodeExceptionTypeId, |
| 36 | input |
| 37 | } |
| 38 | if (isString(message)) { |
| 39 | out.message = message |
| 40 | } |
| 41 | return out |
| 42 | } |
| 43 | |
| 44 | /** @internal */ |
| 45 | export const isEncodeException = (u: unknown): u is Encoding.EncodeException => hasProperty(u, EncodeExceptionTypeId) |
nothing calls this directly
no test coverage detected