Amplify Toolbox
    Preparing search index...

    Class AmplifyError<T>Abstract

    Base class for all Amplify errors or faults

    Type Parameters

    • T extends string = string

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    cause?: Error

    If you are throwing this exception from within a catch block, you must provide the exception that was caught.

    LibraryFault or UserError

    code?: string
    details?: string
    link?: string
    message: string
    name: T

    a user friendly name for the exception

    resolution?: string
    serializedError?: string
    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