code

Retrieves the error code returned when the API call fails.

public Constants.ErrorCode code()
Since
Available since v4.4.0.

Timing

You can call this method to get the error code when the API call fails.

Return Values

  • When the method call fails, returns the error code. See ErrorCode.