[]
        
(Showing Draft Content)

RequestErrorEventArgs Class

RequestErrorEventArgs Class

Provides arguments for XMLHttpRequest error events.

Heirarchy

Constructors

Properties

Constructors

constructor

  • Initializes a new instance of the RequestErrorEventArgs class.

    Parameters

    • xhr: XMLHttpRequest

      The 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 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.