Class ApplicationException

  • All Implemented Interfaces:
    Serializable, org.forgerock.i18n.LocalizableException

    public class ApplicationException
    extends OpenDsException
    This exception is used to encapsulate all the error that we might have during the installation.
    See Also:
    Installer, Serialized Form
    • Constructor Detail

      • ApplicationException

        public ApplicationException​(ReturnCode type,
                                    org.forgerock.i18n.LocalizableMessage localizedMsg,
                                    Throwable rootCause)
        The constructor of the ApplicationException.
        Parameters:
        type - the type of error we have.
        localizedMsg - a localized string describing the problem.
        rootCause - the root cause of this exception.
    • Method Detail

      • createFileSystemException

        public static ApplicationException createFileSystemException​(org.forgerock.i18n.LocalizableMessage msg,
                                                                     Exception e)
        Creates a new ApplicationException of type FILE_SYSTEM_ERROR.
        Parameters:
        msg - localized exception message
        e - Exception cause
        Returns:
        ApplicationException with Type property being FILE_SYSTEM_ERROR
      • getType

        public ReturnCode getType()
        Returns the Type of this exception.
        Returns:
        the Type of this exception.