Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CodewarsError Abstract

Represents a generic Codewars error response when calling their API.

Hierarchy

Index

Constructors

  • new CodewarsError(message: string, code?: 400 | 401 | 403 | 404 | 405 | 406 | 422 | 429 | 500 | 503): CodewarsError

Properties

code?: 400 | 401 | 403 | 404 | 405 | 406 | 422 | 429 | 500 | 503
message: string
name: string
stack?: string
stackTraceLimit: number

Methods

  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

  • prepareStackTrace(err: Error, stackTraces: CallSite[]): any

Generated using TypeDoc