(operation: string, failure: unknown)
| 97 | /** Build the public `UserStoreError` for a store-adapter failure, naming the |
| 98 | * operation the call site already knows and classifying the driver cause. */ |
| 99 | export const userStoreErrorFromFailure = (operation: string, failure: unknown): UserStoreError => |
| 100 | new UserStoreError({ operation, reason: userStoreReasonFromCause(failure) }); |
| 101 | |
| 102 | export class WorkOSError extends Schema.TaggedErrorClass<WorkOSError>()( |
| 103 | "WorkOSError", |
no test coverage detected