Error Method
      
 

Description

Called when server returns an error.


Return Type

None  


Syntax

object.Error Owner, Contact, ChatRoom, Service, ErrorCode, ErrorText


The Error Method syntax has these parts:

Part Description
object An expression evaluating to an object of type IwodXMPPNotify.
Owner Required. 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 method is called only if you implemented IwodXMPPNotify interface in your application, and wodXMPP.Notification property has received reference to instance of your implementation.

This notification method is called 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.