code: protected static void setErrorCondition(CmsMessageContainer errorCondition) {
  
          // init exceptions should only be thrown during setup process
          if ((m_instance != null) && (m_instance.getRunLevel() < OpenCms.RUNLEVEL_3_SHELL_ACCESS)) {
              if (!Messages.ERR_CRITICAL_INIT_WIZARD_0.equals(errorCondition.getKey())) {
                  // if wizard is still enabled allow retry of initialization (for setup wizard)
                  m_errorCondition = errorCondition;
                  // output an error message to the console
                  System.err.println(
                      Messages.get().getBundle().key(Messages.LOG_INIT_FAILURE_MESSAGE_1, errorCondition.key()));
              }
              LOG.error(errorCondition.key(), new CmsException(errorCondition));
              m_instance = null;
          } else if (m_instance != null) {
              // OpenCms already was successful initialized
              LOG.warn(
                  Messages.get().getBundle().key(
                      Messages.LOG_INIT_INVALID_ERROR_2,
                      new Integer(m_instance.getRunLevel()),
                      errorCondition.key()));
          }
      }
docs: Sets the error condition.<p>
  
  @param errorCondition the error condition to set