Class BaseUncheckedException

    • Constructor Detail

      • BaseUncheckedException

        public BaseUncheckedException()
        Constructs a new unchecked exception
      • BaseUncheckedException

        public BaseUncheckedException​(String errorMessage)
        Constructs a new checked exception with errorMessage
        Parameters:
        errorMessage - the detail message.
      • BaseUncheckedException

        public BaseUncheckedException​(String errorCode,
                                      String errorMessage)
        Constructs a new unchecked exception with the specified detail message and error code.
        Parameters:
        errorMessage - the detail message.
        errorCode - the error code.
      • BaseUncheckedException

        public BaseUncheckedException​(String errorCode,
                                      String errorMessage,
                                      Throwable rootCause)
        Constructs a new unchecked exception with the specified detail message and error code and error cause.
        Parameters:
        errorCode - the error code
        errorMessage - the detail message.
        rootCause - the specified cause
    • Method Detail

      • addInfo

        public BaseUncheckedException addInfo​(String errorCode,
                                              String errorText)
        This method add the information of error code and error message.
        Parameters:
        errorCode - the error code
        errorText - the detail message.
        Returns:
        the instance of current BaseCheckedException
      • getCodes

        public List<String> getCodes()
        Returns the list of error codes.
        Returns:
        the list of error codes
      • getErrorTexts

        public List<String> getErrorTexts()
        Returns the list of exception messages.
        Returns:
        the list of exception messages
      • getErrorCode

        public String getErrorCode()
        Return the last error code.
        Returns:
        the last error code
      • getErrorText

        public String getErrorText()
        Return the last exception message.
        Returns:
        the last exception message