code: public void displayError(DBException ex)
      {
          int iWarningLevel = DBConstants.WARNING_MESSAGE;
          String strMessage = DBConstants.BLANK;
          if (ex instanceof DatabaseException)
          {
              iWarningLevel = ((DatabaseException)ex).getWarningLevel();
              strMessage = ((DatabaseException)ex).getMessage(this.getTask());
          }
          else
              strMessage = ex.getMessage();
          this.displayError(strMessage, iWarningLevel);
      }
docs: Display a dialog/status box with this error.
  @param ex The error exception.