getErrorCode method

Returns the error code of the last exception.

 Syntax
 Returns