Back to Pocketbase

Interface ApiError

static/jsvm/interfaces/router.ApiError.html

latest2.0 KB
Original Source

Interface ApiError

ApiError defines the struct for a basic api error response.

Hierarchy

Implemented by

Index

Methods

errorisrawData

Properties

datamessagestatus

Methods

error

  • error(): string

Error makes it compatible with the error interface.

Returns string

is

  • is(target): boolean

Is reports whether the current ApiError wraps the target.

Parameters

target: Error

Returns boolean

rawData

  • rawData(): any

RawData returns the unformatted error data (could be an internal error, text, etc.)

Returns any

Properties

data

data: _TygojaDict

message

message: string

status

status: number

Settings

Member Visibility

  • Inherited

Theme

OSLightDark

On This Page

Generated using TypeDoc