Class ChainedException

    • Constructor Detail

      • ChainedException

        public ChainedException()
        No argument constructor
      • ChainedException

        public ChainedException​(String message,
                                Throwable nestedException)
        Constructor
        Parameters:
        message - String message of this exception
        nestedException - Throwable nested in this exception
      • ChainedException

        public ChainedException​(Throwable nestedException)
        Constructor
        Parameters:
        nestedException - Throwable nested in this exception
      • ChainedException

        public ChainedException​(String message)
        Constructor
        Parameters:
        message - String message of this exception
      • ChainedException

        public ChainedException​(String rbName,
                                String errorCode,
                                Object[] args,
                                Throwable nestedException)
        Constructor Constructs an instance of ChainedException to pass the localized error message At this level, the locale of the caller is not known and it is not possible to throw localized error message at this level. Instead this constructor provides Resource Bundle name and errorCode for correctly locating the error messsage. The default getMessage() will always return English messages only. This is consistent with current JRE
        Parameters:
        rbName - - ResourceBundle Name to be used for getting localized error message.
        errorCode - - Key to resource bundle. You can use ResourceBundle rb = ResourceBunde.getBundle (rbName,locale); String localizedStr = rb.getString(errorCode)
        args - - arguments to message. If it is not present pass them as null
        nestedException - - The root cause of this exception