Back to Pocketbase

Class UnauthorizedError

static/jsvm/classes/UnauthorizedError.html

latest1.8 KB
Original Source

Class UnauthorizedError

UnauthorizedError returns 401 ApiError.

Hierarchy

Implements

Index

Constructors

constructor

Methods

errorisrawData

Properties

datamessagestatus

Constructors

constructor

Parameters

Optional message: string
Optional data: any

Returns UnauthorizedError

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