Back to product page

Error callback method


Called when server returns an error.

Syntax

  • Basic
object.Error (Owner, Contact, ChatRoom, Service, ErrorCode, ErrorText)
The Error(object,Owner,Contact,ChatRoom,Service,ErrorCode,ErrorText) syntax has these parts:
objectAn expression evaluating to an object of type IwodXMPPNotify
OwnerAn expression evaluating to an object of type wodXMPP
ContactXMPPContact object
ChatRoomXMPPChatRoom object
ServiceXMPPService object
ErrorCodeA Long value. Holds numeric value of the error, if provided.
ErrorTextA 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.

Platforms

Windows