code: @Override
      public void setErrorHandlerType(ErrorHandlerType type) {
          if (errorHandler != null) {
              errorHandler.cleanup();
          }
          errorHandlerType = type == null ? ErrorHandlerType.DEFAULT : type;
          switch (errorHandlerType) {
          case NONE:
              errorHandler = null;
              break;
          case DEFAULT:
              errorHandler = new DefaultErrorHandler(inputWidget);
          }
      }
docs: {@inheritDoc}