Error Event
    
 

Description

Fires when server returns an error.


Syntax

Private Sub object_Error(Contact, ChatRoom, Service, ErrorCode, ErrorText)


The Error Event syntax has these parts:

Part Description
object A wodXMPP object.
Contact A XMPPContact object. If set, error is related to the contact.
ChatRoom A XMPPChatRoom object. If set, error occurred in the chat room.
Service A XMPPService object. If set, error is related to the service.
ErrorCode A Long value. Holds numeric value of the error, if provided.
ErrorText A String value. Holds text description of the error, if provided.

Remarks

This event is fired when error  was reported by the sever related to some action. It could be related action that you just performed, but also to actions that were performed minutes ago, hours ago, or perhaps because something happened on the server side that caused error to occur. If error is related to the Contact, ChatRoom, or the Service, corresponding argument will be set up pointing to instance that is related to the error.

 

wodXMPP will try to obtain as much information about the error as possible and provide it in ErrorCode and ErrorText arguments.