Examples of error()


Examples of org.pentaho.platform.util.logging.SimpleLogger.error()

    logger.warn( "This is a warning with class as an object" + +ILogger.WARN, new Throwable() ); //$NON-NLS-1$

    logger.debug( "This is a debug with class as an object" + ILogger.DEBUG ); //$NON-NLS-1$
    logger.debug( "This is a debug with class as an object" + ILogger.DEBUG, new Throwable() ); //$NON-NLS-1$

    logger.error( "This is a error with class as an object" + ILogger.ERROR ); //$NON-NLS-1$
    logger.error( "This is a error with class as an object" + ILogger.ERROR, new Throwable() ); //$NON-NLS-1$

    logger.fatal( "This is a fatal with class as an object" + ILogger.FATAL ); //$NON-NLS-1$
    logger.fatal( "This is a fatal with class as an object" + ILogger.FATAL, new Throwable() ); //$NON-NLS-1$
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.designtime.DesignTimeContext.error()

          dataSourceList.setSelectedValue(connectionDefinition, true);
        }
      }
      catch (XulException e1)
      {
        designTimeContext.error(e1);
      }
    }
  }

  private class RemoveDataSourceAction extends AbstractAction implements PropertyChangeListener
View Full Code Here

Examples of org.projectforge.web.fibu.NewProjektSelectPanel.error()

          final DropDownChoice<HRPlanningEntryStatus> statusChoice = (DropDownChoice<HRPlanningEntryStatus>) dependentEntryFormComponentsArray[i];
          final HRPlanningEntryStatus status = statusChoice.getConvertedInput();
          final NewProjektSelectPanel projektSelectPanel = (NewProjektSelectPanel) dependentEntryFormComponentsArray[i + 1];
          final ProjektDO projekt = projektSelectPanel.getModelObject();
          if (projekt == null && status == null) {
            projektSelectPanel.error(getString("hr.planning.entry.error.statusOrProjektRequired"));
          } else if (projekt != null && status != null) {
            projektSelectPanel.error(getString("hr.planning.entry.error.statusAndProjektNotAllowed"));
          }
        }
      }
View Full Code Here

Examples of org.projectforge.web.wicket.components.MaxLengthTextField.error()

          textField.add(new IValidator<String>() {
            @Override
            public void validate(final IValidatable<String> validatable)
            {
              if (Configuration.isDomainValid(validatable.getValue()) == false) {
                textField.error(getString("validation.error.generic"));
              }
            }
          });
        }
        fs.add(textField);
View Full Code Here

Examples of org.projectforge.web.wicket.components.RequiredMaxLengthTextField.error()

          if (data.getArea() == null) {
            return;
          }
          final String value = validatable.getValue();
          if (parentPage.userPrefDao.doesParameterNameAlreadyExist(data.getId(), data.getUser(), data.getArea(), value)) {
            name.error(getString("userPref.error.nameDoesAlreadyExist"));
          }
        }
      });
      name.add(WicketUtils.setFocus());
      fs.add(new InputPanel(fs.newChildId(), name));
View Full Code Here

Examples of org.sgx.yuigwt.yui.dataschema.DataSchemaResult.error()

      Field.create().key("price").locator("td[2]")
    });
   
    DataSchemaResult ret = Y.DataSchemaXML().apply(schema, table.getDOMNode());
   
    if(ret.error()!=null)
      throw new JavaScriptException(ret.error());
    Window.alert(Y.dump(ret));
     
  }
});
View Full Code Here

Examples of org.slf4j.Logger.error()

      try {
        Attribute<VALUE_TYPE> attribute = featureModel.getAttribute(pojo, name);
        super.setValue(attribute.getValue());
      } catch (LayerException le) {
        Logger log = LoggerFactory.getLogger(LazyPrimitiveAttribute.class);
        log.error("Could not lazily get attribute " + name, le);
      }
    }
    return super.getValue();
  }
View Full Code Here

Examples of org.sonatype.gshell.command.IO.error()

        request.setOutputDirectory(outputDirectory.getAbsolutePath());

        if (archetypeId != null) {
            String[] items = archetypeId.split(":", 3);
            if (items.length != 3) {
                io.error("Invalid archetype id: {}", archetypeId); // TODO: i18n
                return Result.FAILURE;
            }

            request.setArchetypeGroupId(items[0])
                .setArchetypeArtifactId(items[1])
View Full Code Here

Examples of org.springframework.beans.factory.xml.XmlReaderContext.error()

        Class<?> nameGeneratorClass = classLoader.loadClass(nameGeneratorClassName);
        BeanNameGenerator nameGenerator = BeanUtils.instantiateClass(nameGeneratorClass, BeanNameGenerator.class);
        scanner.setBeanNameGenerator(nameGenerator);
      }
    } catch (Exception ex) {
      readerContext.error(ex.getMessage(), readerContext.extractSource(element), ex.getCause());
    }
    String sqlSessionTemplateBeanName = element.getAttribute(ATTRIBUTE_TEMPLATE_REF);
    scanner.setSqlSessionTemplateBeanName(sqlSessionTemplateBeanName);
    String sqlSessionFactoryBeanName = element.getAttribute(ATTRIBUTE_FACTORY_REF);
    scanner.setSqlSessionFactoryBeanName(sqlSessionFactoryBeanName);
View Full Code Here

Examples of org.springframework.binding.message.MessageBuilder.error()

       
        final Map<String, Attribute> attributes = personQuery.getAttributes();
        for (final String attribute : attributes.keySet()) {
            if (!queryAttributes.contains(attribute)) {
                final MessageBuilder messageBuilder = new MessageBuilder();
                messageBuilder.error();
                messageBuilder.source("attributes[" + attribute + "].value");
                messageBuilder.code("personLookup.invalidQueryAttribute");
                messageBuilder.arg(attribute);

                final MessageResolver errorMessage = messageBuilder.build();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.