| 24 | }> {} |
| 25 | |
| 26 | export class SourceFetchDataError extends Tagged('SourceFetchDataError')<{ |
| 27 | readonly error: any |
| 28 | alreadyHandled: boolean |
| 29 | }> { |
| 30 | toString = () => `SourceFetchDataError: ${errorToString(this.error)}` |
| 31 | toJSON = () => ({ _tag: this._tag, error: errorToString(this.error), alreadyHandled: this.alreadyHandled }) |
| 32 | static fromJSON = (json: any) => new SourceFetchDataError({ error: json.error, alreadyHandled: json.alreadyHandled }) |
| 33 | } |
| 34 | |
| 35 | export type SourceFetchDataErrorJSON = ReturnType<SourceFetchDataError['toJSON']> |
| 36 |
nothing calls this directly
no test coverage detected
searching dependent graphs…