VssServerError interface

When a fetch request fails, it will throw a VssServerError. Failure is defined as a request that made it to the server, and the server successfully responded with a failure. This will be any status return that is not a status code in the success range (200-299).

Extends

Error

Properties

responseText

The raw text that was returned from the server. If any is available.

serverError

If the response text was sent and it was in the form of a JSON response the object will be parsed and deserialized object is available here.

This commonly has the exception details about the failure from the server. Things like the message, exception type, and stack trace will be available.

status

The status code returned from the server.

Inherited Properties

message
name
stack

Property Details

responseText

The raw text that was returned from the server. If any is available.

responseText: string

Property Value

string

serverError

If the response text was sent and it was in the form of a JSON response the object will be parsed and deserialized object is available here.

This commonly has the exception details about the failure from the server. Things like the message, exception type, and stack trace will be available.

serverError?: any

Property Value

any

status

The status code returned from the server.

status: number

Property Value

number

Inherited Property Details

message

message: string

Property Value

string

Inherited From Error.message

name

name: string

Property Value

string

Inherited From Error.name

stack

stack?: string

Property Value

string

Inherited From Error.stack