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

Method constructor

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

Source from the content-addressed store, hash-verified

176
177export class CannotRetryError extends Error {
178 constructor(
179 public readonly originalError: unknown,
180 public readonly retryContext: RetryContext,
181 ) {
182 const message = errorMessage(originalError)
183 super(message)
184 this.name = 'RetryError'
185
186 // Preserve the original stack trace if available
187 if (originalError instanceof Error && originalError.stack) {
188 this.stack = originalError.stack
189 }
190 }
191}
192
193export class FallbackTriggeredError extends Error {

Callers

nothing calls this directly

Calls 1

errorMessageFunction · 0.50

Tested by

no test coverage detected