Package org.apache.hivemind

Examples of org.apache.hivemind.ErrorHandler.error()


        }
        catch (Exception ex)
        {
            ErrorHandler eh = processor.getContributingModule().getErrorHandler();

            eh.error(
                LOG,
                RulesMessages.readAttributeFailure(_attributeName, element, processor, ex),
                element.getLocation(),
                ex);
        }
View Full Code Here


        {
            ErrorHandler eh = processor.getContributingModule().getErrorHandler();

            String message = RulesMessages.unableToSetProperty(_propertyName, target, ex);

            eh.error(LOG, message, element.getLocation(), ex);
        }

    }

    public void setPropertyName(String string)
View Full Code Here

        }
        catch (Exception ex)
        {
            ErrorHandler eh = processor.getContributingModule().getErrorHandler();

            eh.error(
                LOG,
                RulesMessages.readContentFailure(processor, element, ex),
                element.getLocation(),
                ex);
        }
View Full Code Here

    public void testUnknownPrereq() throws Exception
    {
        ErrorHandler eh = (ErrorHandler) newMock(ErrorHandler.class);

        eh.error(LOG, "Unknown cartoon character dependency 'charlie' (for 'fred').", null, null);

        replayControls();

        Orderer o = new Orderer(LOG, eh, "cartoon character");
View Full Code Here

    public void testUnknownPostreq() throws Exception
    {
        ErrorHandler eh = (ErrorHandler) newMock(ErrorHandler.class);

        eh.error(LOG, "Unknown cartoon character dependency 'dino' (for 'betty').", null, null);

        replayControls();

        Orderer o = new Orderer(LOG, eh, "cartoon character");
View Full Code Here

    public void testCyclePre() throws Exception
    {
        MockControl c = newControl(ErrorHandler.class);
        ErrorHandler eh = (ErrorHandler) c.getMock();

        eh.error(
                LOG,
                "Unable to order cartoon character 'wilma' due to dependency cycle:"
                        + " A cycle has been detected from the initial object [wilma]",
                null,
                new ApplicationRuntimeException(""));
View Full Code Here

    public void testCyclePost() throws Exception
    {
        MockControl c = newControl(ErrorHandler.class);
        ErrorHandler eh = (ErrorHandler) c.getMock();

        eh
                .error(
                        LOG,
                        "Unable to order cartoon character 'betty' due to dependency cycle: A cycle has been detected from the initial object [fred]",
                        null,
                        new ApplicationRuntimeException(""));
View Full Code Here

        schema.setId("Baz");
        schema.setVisibility(Visibility.PRIVATE);

        Location l = fabricateLocation(13);

        eh.error(log, ImplMessages.schemaNotVisible("foo.bar.Baz", "zip.zoop"), l, null);

        replayControls();

        ModuleDescriptor fooBar = new ModuleDescriptor(null, eh);
        fooBar.setModuleId("foo.bar");
View Full Code Here

        Log log = LogFactory.getLog(TestRegistryInfrastructureConstructor.class);

        Location l = fabricateLocation(13);

        eh.error(log, ImplMessages.unableToResolveSchema("foo.bar.Baz"), l, null);

        replayControls();

        ModuleDescriptor zipZoop = new ModuleDescriptor(null, eh);
        zipZoop.setModuleId("zip.zoop");
View Full Code Here

        Log log = LogFactory.getLog(TestRegistryInfrastructureConstructor.class);

        Location location = fabricateLocation(1);

        eh.error(
                log,
                "Unexpected token <AND> in expression 'and class foo'.",
                location,
                new RuntimeException());
        ehControl.setMatcher(new AggregateArgumentsMatcher(new ArgumentMatcher[]
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.