(operation: string, failure: unknown)
| 118 | /** Build the public `UserStoreError` for a store-adapter failure, naming the |
| 119 | * operation the call site already knows and classifying the driver cause. */ |
| 120 | export const userStoreErrorFromFailure = (operation: string, failure: unknown): UserStoreError => |
| 121 | new UserStoreError({ operation, reason: userStoreReasonFromCause(failure) }); |
| 122 | |
| 123 | export class WorkOSError extends Schema.TaggedErrorClass<WorkOSError>()( |
| 124 | "WorkOSError", |
no test coverage detected