Forest Admin - API reference
    Preparing search index...

    Hierarchy

    • BaseError
      • ProxyForwardError
    Index

    Constructors

    Properties

    baseBusinessErrorName: string
    data: Record<string, unknown>
    debugUri: string
    details: string
    isBusinessError: true
    message: string
    name: string
    source: "Proxy" = 'Proxy'
    stack?: string
    prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

    Optional override for formatting stack traces

    stackTraceLimit: number

    Methods

    • Create .stack property on a target object

      Parameters

      • targetObject: object
      • OptionalconstructorOpt: Function

      Returns void

    • We cannot rely on instanceof because there can be some mismatch between packages versions as dependencies of different packages. So this function is a workaround to check if an error is of a specific type.

      Parameters

      • error: Error
      • ErrorConstructor: new (...args: never[]) => Error

      Returns boolean