externalStarlightError
Hierarchy
- Error
- StarlightError
Index
Constructors
Properties
Methods
Constructors
externalconstructor
Parameters
externalmessage: string
externalresponse: Response
Returns StarlightError
Properties
externalmessage
externalname
externalresponse
The response provided by the fetch
method when the error occurred.
externaloptionalstack
staticexternaloptionalprepareStackTrace
Type declaration
Optional override for formatting stack traces
Parameters
externalerr: Error
externalstackTraces: CallSite[]
Returns any
staticexternalstackTraceLimit
Methods
staticexternalcaptureStackTrace
Create .stack property on a target object
Parameters
externaltargetObject: object
externaloptionalconstructorOpt: Function
Returns void
This error is thrown every time a problem occurs when requesting something from Starlight’s APIs. When it does, you can inspect the attached response to verify what kind of problem happened and handle it accordingly.