(
error: E,
annotations = constEmptyAnnotations
)
| 245 | export class Fail<E> extends ReasonBase<"Fail"> implements Cause.Fail<E> { |
| 246 | readonly error: E |
| 247 | constructor( |
| 248 | error: E, |
| 249 | annotations = constEmptyAnnotations |
| 250 | ) { |
| 251 | super("Fail", annotations, error) |
| 252 | this.error = error |
| 253 | } |
| 254 | override toString() { |
| 255 | return `Fail(${format(this.error)})` |
| 256 | } |
nothing calls this directly
no outgoing calls
no test coverage detected