Class BaseResult


  • public abstract class BaseResult
    extends java.lang.Object
    An abstract base class for verification results.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int STATUS_ALREADY_REQUESTED
      Verify was rejected because another verification to the same number was already requested.
      static int STATUS_COMMS_FAILURE
      A network error occurred
      static int STATUS_INTERNAL_ERROR
      Verify was rejected due to a failure within the Nexmo systems.
      Verify can be re-submitted after a short delay
      static int STATUS_INVALID_CODE
      The code inserted does not match the expected value
      static int STATUS_INVALID_CREDENTIALS
      Verify was rejected due to receiving invalid account api key and/or secret
      static int STATUS_INVALID_PARAMS
      Verify was rejected due to an illegal value in one or more elements of the submission request
      static int STATUS_INVALID_REQUEST
      Verify was rejected because the Nexmo service was unable to handle this request.
      static int STATUS_MISSING_PARAMS
      Verify was rejected due to incomplete data in the submission request
      static int STATUS_NO_RESPONSE
      There are no matching verification requests
      static int STATUS_NUMBER_BARRED
      Verify was rejected because the phone number you tried to submit to has been blacklisted.
      static int STATUS_OK
      Verify was successfully submitted to the Nexmo service
      static int STATUS_PARTNER_ACCOUNT_BARRED
      Verify was rejected because your account has been barred, or has not yet been activated
      static int STATUS_PARTNER_QUOTA_EXCEEDED
      Verify was rejected because your pre-paid balance does not contain enough credit to handle this request.
      Please top up your balance before re-submitting this request or subsequent requests.
      static int STATUS_THROTTLED
      Verify was rejected due to exceeding the maximum throughput allowed for this account.
      Verify can be re-requested after a short delay
      static int STATUS_TOO_MANY_DESTINATIONS
      There are more than the maximum allowed number of destinations in this request
      static int STATUS_UNSUPPORTED_NETWORK
      The destination number is not in a supported network
      static int STATUS_WRONG_CODE_THROTTLED
      A wrong code was provided too many times
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected BaseResult​(int status, java.lang.String errorText, boolean temporaryError)