• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Edit
Show / Hide Table of Contents

getErrorMessage

Some tooltip text!
• 1 minute to read
 • 1 minute to read

Description

Finds the descriptive text for an error. These messages are linked to the session, so only the last error message for one session is returned. For errors before you receive a valid session key see the appendix.

In parameters

Parameter Description
sessionKey A valid session key.

Out parameters

Parameter Description
errorMessage A text explaining the last error.

Example

string sessionKey;
admin.adminService adminService = new admin.adminService();
ticket.ticketService ticketService = new ticket.ticketService();

ticketService.login("test","test",out sessionKey);

string res = some_method();
if(res =="0")
  textBox1.Text = "OK";
else
  textBox1.Text = adminService.getErrorMessage(sessionKey);
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top