last, error, api, request, response, send, soap, rest, get, post, put, delete

Method GetLastError

API

Returns Last Error Message

Watch this video to learn how to use this method

Have a problem with playback?
GetLastError method returns latest error message from API resposne (if there is one) The output is a string with error code of API error. If there is no error appeared the output is empty Let's change our API server name to the wrong one. Do Execute of the method first and output GetLastError to the message box. We can see the error is 404 - server not found, es expected.

Usage

Function GetLastError()

Method

GetLastError

Parameters

This method does not take parameters

Returns

Error Message

Example

VBScript

Server("API Server").Method("Method").Execute
' Check last error
msgbox Server("API Server").Method("Method").GetLastError()

JavaScript

Server("API Server").Method("Method").Execute();
// Check last error
alert(Server("API Server").Method("Method").GetLastError());

Method

Execute

Comment

Check last error

Method

GetLastError

Contact Us

Tower Place 100

3340 Peachtree Rd NE #1800 

Atlanta, GA 30326 USA

(404) 814-5227