Exception Handling

The API provides exception handling. It returns an error code and an error message.

Error Messages
Error Code Error Message
1 Please authenticate.
2 Please insert a text. You cannot send empty messages.
3 Please provide a valid recipient for your message (nickname).
4 Error while sending message. Please try again.
5 Please provide a valid message ID.
6 You are not authorized to read this message.
7 We found no message with the provided ID.
8 Please provide a valid authorization token.
9 Please provide a valid API method.

You can view them here: http://thats-me.ch/api/listErrors

Sample Error Request


Sample Return

<?xml version="1.0" encoding="utf-8"?>

  <text>Please provide a valid API method.</text>

Last edited Feb 21, 2011 at 3:06 PM by cansik, version 1


No comments yet.