com.ibm.itim.apps

Class ApplicationException

    • Constructor Summary

      Constructors 
      Constructor and Description
      ApplicationException(java.lang.String errCode)
      Constructs an ApplicationException with an error code.
      ApplicationException(java.lang.String errCode, java.lang.Object[] tokens)
      Constructs an ApplicationException with an error code and message tokens.
      ApplicationException(java.lang.String errCode, java.lang.Object[] tokens, java.lang.Throwable cause)
      Constructs with an error code and the cause exception.
      ApplicationException(java.lang.String errCode, java.lang.String exMsg)
      Constructs with an error code and an extra message string.
      ApplicationException(java.lang.String errCode, java.lang.Throwable cause)
      Constructs with an error code and the cause exception.
    • Constructor Detail

      • ApplicationException

        public ApplicationException(java.lang.String errCode)
        Constructs an ApplicationException with an error code.
        Parameters:
        errCode - Code for the error.
      • ApplicationException

        public ApplicationException(java.lang.String errCode,
                                    java.lang.Object[] tokens)
        Constructs an ApplicationException with an error code and message tokens.
        Parameters:
        errCode - Error code identifying the problem.
        tokens - Object[] containing string values for replaceable tokens in the message bundle string.
      • ApplicationException

        public ApplicationException(java.lang.String errCode,
                                    java.lang.String exMsg)
        Constructs with an error code and an extra message string.
        Parameters:
        errCode - Error code identifying the problem.
        exMsg - Additional information in a String.
      • ApplicationException

        public ApplicationException(java.lang.String errCode,
                                    java.lang.Throwable cause)
        Constructs with an error code and the cause exception.
        Parameters:
        errCode - Error code identifying the problem.
        cause - Throwable representing the exception causing this exception.
      • ApplicationException

        public ApplicationException(java.lang.String errCode,
                                    java.lang.Object[] tokens,
                                    java.lang.Throwable cause)
        Constructs with an error code and the cause exception.
        Parameters:
        errCode - Error code identifying the problem.
        cause - Throwable representing the exception causing this exception.
        tokens - Object[] containing string values for replaceable tokens in the message bundle string.
    • Method Detail

      • getErrorCode

        public java.lang.String getErrorCode()
        Returns the error code.
        Returns:
        Error code identifying the problem.
      • getExtraMessage

        public java.lang.String getExtraMessage()
        Returns the first token in the tokens array used to construct this ApplicationException, (i.e., tokens[0].toString()) or null if no tokens are present.
        Returns:
        First token in tokens (i.e., tokens[0].toString()).