Class ZumoKitErrorType


  • public final class ZumoKitErrorType
    extends java.lang.Object
    The type of error returned. In case of wallet errors, these errors can be safely displayed to the end users. See Handling Errors for details.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String API_CONNECTION_ERROR
      Failure to connect to ZumoKit’s API.
      static java.lang.String API_ERROR
      Default error if something goes wrong on our side.
      static java.lang.String AUTHENTICATION_ERROR
      Failed to authenticate with ZumoKit's API.
      static java.lang.String INVALID_ARGUMENT_ERROR
      Errors triggered when failing to validate arguments, e.g.
      static java.lang.String INVALID_REQUEST_ERROR
      Invalid request errors arise when request to API has invalid parameters.
      static java.lang.String RATE_LIMIT_ERROR
      Too many requests hit the API too quickly.
      static java.lang.String WALLET_ERROR
      Wallet errors are the most common type of error you should expect to handle.
      static java.lang.String ZUMO_KIT_ERROR
      Base ZumoKit error.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • ZUMO_KIT_ERROR

        public static final java.lang.String ZUMO_KIT_ERROR
        Base ZumoKit error.
        See Also:
        Constant Field Values
      • API_CONNECTION_ERROR

        public static final java.lang.String API_CONNECTION_ERROR
        Failure to connect to ZumoKit’s API.
        See Also:
        Constant Field Values
      • API_ERROR

        public static final java.lang.String API_ERROR
        Default error if something goes wrong on our side.
        See Also:
        Constant Field Values
      • AUTHENTICATION_ERROR

        public static final java.lang.String AUTHENTICATION_ERROR
        Failed to authenticate with ZumoKit's API.
        See Also:
        Constant Field Values
      • WALLET_ERROR

        public static final java.lang.String WALLET_ERROR
        Wallet errors are the most common type of error you should expect to handle. They result when user's wallet action can't be performed, e.g. balance too low or invalid wallet password are such errors.
        See Also:
        Constant Field Values
      • INVALID_REQUEST_ERROR

        public static final java.lang.String INVALID_REQUEST_ERROR
        Invalid request errors arise when request to API has invalid parameters.
        See Also:
        Constant Field Values
      • RATE_LIMIT_ERROR

        public static final java.lang.String RATE_LIMIT_ERROR
        Too many requests hit the API too quickly.
        See Also:
        Constant Field Values
      • INVALID_ARGUMENT_ERROR

        public static final java.lang.String INVALID_ARGUMENT_ERROR
        Errors triggered when failing to validate arguments, e.g. when a destination address is invalid.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ZumoKitErrorType

        public ZumoKitErrorType()
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object