Decoder that always fails with the given error message.
The error message to return
A decoder that always fails with the specified error
const failDecoder = JsonDecoder.fail<string>('This decoder always fails');failDecoder.decode('anything'); // Err({ issues: [{ message: 'This decoder always fails', path: [] }] }) Copy
const failDecoder = JsonDecoder.fail<string>('This decoder always fails');failDecoder.decode('anything'); // Err({ issues: [{ message: 'This decoder always fails', path: [] }] })
Decoder that always fails with the given error message.