Create a new Amplify Library Fault
a user friendly name for the exception
error stack, resolution steps, details, or help links
Optionalcause: ErrorIf you are throwing this exception from within a catch block, you must provide the exception that was caught.
Optional ReadonlycauseIf you are throwing this exception from within a catch block, you must provide the exception that was caught.
ReadonlyclassificationLibraryFault or UserError
Optional ReadonlycodeOptional ReadonlydetailsOptional ReadonlylinkReadonlymessageReadonlynamea user friendly name for the exception
Optional ReadonlyresolutionOptionalserializedOptionalstackStatic OptionalprepareOptional override for formatting stack traces
StaticstackStaticcaptureCreate .stack property on a target object
OptionalconstructorOpt: FunctionStaticfromStaticfromStaticisThis function is a type predicate for AmplifyError. See https://www.typescriptlang.org/docs/handbook/2/narrowing.html#using-type-predicates.
Checks if error is an AmplifyError by inspecting if required properties are set. This is recommended instead of instanceof operator. The instance of operator does not work as expected if AmplifyError class is loaded from multiple sources, for example when package manager decides to not de-duplicate dependencies. See https://github.com/nodejs/node/issues/17943.
Base class for all Amplify library faults