What error catching and handling functionality is offered?
Error catching and handling is offered by the API packages for Visual Basic.NET, PHP, Java, Perl and Python.
In addition to standard error functions offered by different language platforms (stack trace functions etc.) you can access further information about thrown errors caught by the
SMSClientException object, for example:
Visual Basic.NET
Try
'Code
Catch myException as HTTPSMS.SMSClientException
Console.WriteLine(myException.Message)
End Try
PHP
$responses = send_sms($destination, $source, $message)
or die ("Error: " . $errstr . "\n");
Java
try {
//code
catch (SMSClientException e){
System.err.println(e.getMessage());
}
Perl
SendSMS::initialise($username, $password) or die SendSMS->errstr;
Python
try
#Code
except SMSClientError, e:
print e