mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

kenneth_suter
06.09.2007 43e8cc1e0b7576d94c96f07f64b25affb5b07af0
opends/src/quicksetup/org/opends/quicksetup/ApplicationException.java
@@ -84,12 +84,28 @@
    WINDOWS_SERVICE_ERROR,
    /**
     * Application specific error.
     */
    APPLICATION,
    /**
     * A bug (for instance when we throw an IllegalStateException).
     */
    BUG
  }
  /**
   * Creates a new ApplicationException of type FILE_SYSTEM_ERROR.
   * @param msg localized exception message
   * @param e Exception cause
   * @return ApplicationException with Type property being FILE_SYSTEM_ERROR
   */
  public static ApplicationException createFileSystemException(String msg,
                                                               Exception e) {
    return new ApplicationException(Type.FILE_SYSTEM_ERROR, msg, e);
  }
  /**
   * The constructor of the ApplicationException.
   * @param type the type of error we have.
   * @param localizedMsg a localized string describing the problem.