com.ibm.security.access.mobile.authentication

Class MobileKitException

  • java.lang.Object
    • java.lang.Throwable
      • java.lang.Exception
        • com.ibm.security.access.mobile.authentication.MobileKitException
  • All Implemented Interfaces:
    java.io.Serializable


    public class MobileKitException
    extends java.lang.Exception
    The customized exception class.
    Since:
    1.2.3
    Version:
    1.2.8
    See Also:
    Serialized Form
    • Constructor Detail

      • MobileKitException

        public MobileKitException(java.lang.String message)
        Returns an instance, containing the given message string.
        Parameters:
        message - the string, describing the exception
      • MobileKitException

        public MobileKitException(ErrorCodes errorCode)
        Returns an instance, containing the given errorCode.
        Parameters:
        errorCode - the ErrorCodes of the error
      • MobileKitException

        public MobileKitException(ErrorCodes errorCode,
                                  java.lang.String subString)
        Returns an instance, containing the given errorCode and its substitute.
        Parameters:
        errorCode - the ErrorCodes of the error
        subString - the string, to be used for substitution
      • MobileKitException

        public MobileKitException(java.lang.String message,
                                  java.lang.Throwable cause)
        Returns an instance, containing the given message and cause.
        Parameters:
        message - the string, describing the exception
        cause - the exception that was thrown
      • MobileKitException

        public MobileKitException(java.lang.Throwable cause)
        Returns an instance, containing the given cause.
        Parameters:
        cause - the exception that was thrown
      • MobileKitException

        public MobileKitException(java.lang.Throwable cause,
                                  ErrorCodes errorCode)
        Returns an instance, containing the given cause and errorCode.
        Parameters:
        cause - the exception that was thrown
        errorCode - the ErrorCodes of the error
      • MobileKitException

        public MobileKitException(java.lang.Throwable cause,
                                  ErrorCodes errorCode,
                                  java.lang.String subString)
        Returns an instance, containing the given cause, errorCode and its substitute.
        Parameters:
        cause - the exception that was thrown
        errorCode - the ErrorCodes of the error
        subString - the string, to be used for substitution
    • Method Detail

      • getErrorCode

        public ErrorCodes getErrorCode()
        Returns the errorCode.
        Returns:
        the ErrorCodes of this instance
      • getMessage

        public java.lang.String getMessage()
        Returns the error message.
        Overrides:
        getMessage in class java.lang.Throwable
        Returns:
        the error message
      • put

        public void put(java.lang.String key,
                        java.lang.Object object)
        Adds the key/value pair to the map of additional attributes.
        Parameters:
        key - the name of the key
        object - the value, related to the key
        Throws:
        java.lang.IllegalArgumentException - if key is null
      • toString

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