v5.20191.606
|

RequestErrorEventArgs Class

Provides arguments for {@link XMLHttpRequest} error events.

Hierarchy

Constructors

Properties

Constructors

constructor

  • Initializes a new instance of the RequestErrorEventArgs class.

    Parameters

    • xhr: XMLHttpRequest

      The {@link XMLHttpRequest} that detected the error. The status and statusText properties of the request object contain details about the error.

    • Optional msg: string

      Optional error message.

    Returns RequestErrorEventArgs

Properties

cancel

cancel: boolean

Gets or sets a value that indicates whether the event should be canceled.

message

message: string

Gets or sets an error message to display to the user.

request

request: XMLHttpRequest

Gets a reference to the {@link XMLHttpRequest} that detected the error.

The status and statusText properties of the request object contain details about the error.

Static empty

empty: EventArgs

Provides a value to use with events that do not have event data.