Examples of error()


Examples of org.jostraca.util.UserMessageHandler.error()

    umh.add( UserMessageHandler.DEBUG, "debug03 FAIL" );

    umh.debug( "debug04 FAIL" );
    umh.info"info01" );
    umh.warn"warn01" );
    umh.error( "error01" );
    umh.fatal( "fatal01" );

    umh.info( "foo:", "bar" );
    umh.info( "foofoo:", "bar" );
  }
View Full Code Here

Examples of org.jpos.bsh.BSHRequestListener.error()

        Log bSHRequestListener = new BSHRequestListener();
        Logger logger = new Logger();
        bSHRequestListener.setLogger(logger, "testLogRealm");
        logger.addListener(null);
        try {
            bSHRequestListener.error(new SimpleLogListener(), "");
            fail("Expected NullPointerException to be thrown");
        } catch (NullPointerException ex) {
            assertNull("ex.getMessage()", ex.getMessage());
        }
    }
View Full Code Here

Examples of org.jpos.transaction.participant.BSHTransactionParticipant.error()

        Logger logger = new Logger();
        SimpleLogSource bSHTransactionParticipant = new BSHTransactionParticipant();
        logger.addListener(null);
        bSHTransactionParticipant.setLogger(logger, "testSimpleLogSourceRealm");
        try {
            bSHTransactionParticipant.error("testSimpleLogSourceDetail");
            fail("Expected NullPointerException to be thrown");
        } catch (NullPointerException ex) {
            assertNull("ex.getMessage()", ex.getMessage());
        }
    }
View Full Code Here

Examples of org.jrest4guice.rest.annotations.PageFlow.error()

      if (annotation == null) {
        writeTextPlain(out, httpResult);
      } else {
        PageInfo pageInfo = null;
        if (result instanceof Exception) {
          pageInfo = annotation.error();
          if (result instanceof ValidatorException) {
            httpResult
                .setInvalidValues(((ValidatorException) result)
                    .getInvalidValues());
            session.setAttribute(ServiceResult.INVALID_VALUE_KEY,
View Full Code Here

Examples of org.keycloak.events.EventBuilder.error()

            }

            event.user(user);

            if (!user.isEnabled()) {
                event.error(Errors.USER_DISABLED);
                return Flows.forwardToSecurityFailurePage(session, realm, uriInfo, "Your account is not enabled.");
            }

            String username = socialLink.getSocialUserId() + "@" + socialLink.getSocialProvider();
View Full Code Here

Examples of org.lightadmin.core.reporting.ProblemReporter.error()

        ProblemReporter problemReporter = failFastReporter();

        for (ConfigurationUnits configurationUnits : domainTypeConfigurationUnits) {
            if (nonPersistentEntityType(configurationUnits.getDomainType())) {
                problemReporter.error(new DomainConfigurationProblem(configurationUnits, format("Administration of non-persistent type %s is not supported.", configurationUnits.getDomainType().getSimpleName())));
                continue;
            }

            configurationUnits = preprocessConfigurationUnits(configurationUnits);
View Full Code Here

Examples of org.moxie.console.Console.error()

          MxJavac subCompile = new MxJavac(builds);
          subCompile.setProject(project);
          subCompile.setShowtitle(false);
          subCompile.perform();
        } catch (Exception e) {
          console.error(e);
          throw new MoxieException(e);
        }
      }
    }
View Full Code Here

Examples of org.objectweb.celtix.configuration.impl.TypeSchema.TypeSchemaErrorHandler.error()

    public void testErrorHandler() {
        TypeSchemaErrorHandler eh = new TypeSchema.TypeSchemaErrorHandler();
        SAXParseException spe = new SAXParseException(null, null, null, 0, 0);
       
        try {
            eh.error(spe);
            fail("Expected SAXParseException not thrown.");
        } catch (SAXParseException ex) {
            // ignore;
        }
       
View Full Code Here

Examples of org.olat.core.logging.OLog.error()

            }
          }
        }
        in.close();
      } catch (Exception e) {
        log.error("Error while reading chelp blacklist::" + blackListFile.getAbsolutePath(), e);
      }
    }
    return blacklist;
  }
}
View Full Code Here

Examples of org.openbel.framework.common.SimpleOutput.error()

          printUsage();
          // Another SimpleOutput is used here, and it uses stdout because at this
          // point nothing else will need to be output.
          SimpleOutput so = new SimpleOutput();
          so.setErrorStream(System.out);
          so.error("\n");
            so.error("No documents specified.");
            end();
        } else if (extraArgs.size() > 1) {
            fatal("Only a single document can be specified.");
        }
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.