MCPcopy Create free account
hub / github.com/freecodexyz/free-code / constructor

Method constructor

src/services/api/withRetry.ts:145–157  ·  view source on GitHub ↗
(
    public readonly originalError: unknown,
    public readonly retryContext: RetryContext,
  )

Source from the content-addressed store, hash-verified

143
144export class CannotRetryError extends Error {
145 constructor(
146 public readonly originalError: unknown,
147 public readonly retryContext: RetryContext,
148 ) {
149 const message = errorMessage(originalError)
150 super(message)
151 this.name = 'RetryError'
152
153 // Preserve the original stack trace if available
154 if (originalError instanceof Error && originalError.stack) {
155 this.stack = originalError.stack
156 }
157 }
158}
159
160export class FallbackTriggeredError extends Error {

Callers

nothing calls this directly

Calls 1

errorMessageFunction · 0.50

Tested by

no test coverage detected