Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CodewarsMethodNotAllowed

Hierarchy

Index

Constructors

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

Properties

code?: 400 | 401 | 403 | 404 | 405 | 406 | 422 | 429 | 500 | 503
message: string
name: string
stack?: string
code: 400 | 401 | 403 | 404 | 405 | 406 | 422 | 429 | 500 | 503 = ...
meaning: "Method Not Allowed -- You tried to access a resource with an invalid method" = 'Method Not Allowed -- You tried to access a resource with an invalid method'
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