Class POBError

  • All Implemented Interfaces:

    
    public class POBError
    
                        

    Maintains the OpenWrap error code along with specific error message

    • Constructor Detail

      • POBError

        POBError(int errorCode, String message)
    • Method Detail

      • getErrorCode

         int getErrorCode()

        Returns the integer value of the error code.

        Returns:

        error code value

      • setErrorCode

        @Deprecated() void setErrorCode(int errorCode)

        (Internal for OpenWrap SDK)

        Parameters:
        errorCode - error code
      • getExtraInfo

        @Nullable() Map<String, Object> getExtraInfo()

        returns the extra info needed for identifying the granular level of error identification

        Returns:

        Map containing the extra info

      • setExtraInfo

         void setExtraInfo(@Nullable() Map<String, Object> extraInfo)

        Sets the map containing the extra information needed for identifying the granular level of error

        Parameters:
        extraInfo - Map containing the extra information
      • getExtraInfo

        @Nullable() Object getExtraInfo(@Nullable() String key)

        Returns the extra info needed for identifying the granular level of error identification based on provided key

        Parameters:
        key - Key for expected information
        Returns:

        Object for extra information

      • addExtraInfo

         void addExtraInfo(String key, Object value)

        Sets the key-value pair for the extra information needed for identifying the granular level of error

        Parameters:
        key - Key for saving the extra information
        value - Value for extra info
      • toString

        @NonNull() String toString()

        Returns the descriptive/string format of current error object.

        Returns:

        Descriptive error message