Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AttributeError

Hierarchy

Index

Properties

Methods

Properties

message

message: string

name

name: string = "AttributeError"

Optional stack

stack: string

Methods

Static isInstance

  • isInstance(exception: Error): boolean
  • This exists because Webpack creates a whole new copy of this class, except when you're comparing types in memory (eg. exception instanceof ValidationError) where exception is a transpiled instance of this class, and ValidationError is imported via non-transpiled methods (TypeScript). We need a way to check if either are instanceof ValidationError

    Parameters

    • exception: Error

    Returns boolean

Generated using TypeDoc