Examples of firstError()


Examples of org.apache.xmlbeans.impl.common.XmlErrorWatcher.firstError()

                null, (Schema[])schemas.toArray(EMPTY_SCHEMA_ARRAY),
                (Config[])configs.toArray(EMPTY_CONFIG_ARRAY), linkTo, options, errorWatcher, false, null, null);

        if (errorWatcher.hasError())
        {
            throw new XmlException(errorWatcher.firstError());
        }

        return stsi;
    }
View Full Code Here

Examples of org.apache.xmlbeans.impl.common.XmlErrorWatcher.firstError()

            config, linkTo, options, errorWatcher, filer!=null, null, null, null);

        // if there is an error and compile didn't recover (stsi==null), throw exception
        if (errorWatcher.hasError() && stsi == null)
        {
            throw new XmlException(errorWatcher.firstError());
        }

        if (stsi != null && !stsi.isIncomplete() && filer != null)
        {
            stsi.save(filer);
View Full Code Here

Examples of org.apache.xmlbeans.impl.common.XmlErrorWatcher.firstError()

                null, (Schema[])schemas.toArray(EMPTY_SCHEMA_ARRAY),
                (Config[])configs.toArray(EMPTY_CONFIG_ARRAY), linkTo, options, errorWatcher, false, null, null);

        if (errorWatcher.hasError())
        {
            throw new XmlException(errorWatcher.firstError());
        }

        return stsi;
    }
View Full Code Here

Examples of org.apache.xmlbeans.impl.common.XmlErrorWatcher.firstError()

            null, null);

        // if there is an error and compile didn't recover (stsi==null), throw exception
        if (errorWatcher.hasError() && stsi == null)
        {
            throw new XmlException(errorWatcher.firstError());
        }

        if (stsi != null && !stsi.isIncomplete() && filer != null)
        {
            stsi.save(filer);
View Full Code Here

Examples of org.apache.xmlbeans.impl.common.XmlErrorWatcher.firstError()

            config, linkTo, options, errorWatcher, filer!=null, null, null, null);

        // if there is an error and compile didn't recover (stsi==null), throw exception
        if (errorWatcher.hasError() && stsi == null)
        {
            throw new XmlException(errorWatcher.firstError());
        }

        if (stsi != null && !stsi.isIncomplete() && filer != null)
        {
            stsi.save(filer);
View Full Code Here

Examples of org.apache.xmlbeans.impl.common.XmlErrorWatcher.firstError()

                null, (Schema[])schemas.toArray(EMPTY_SCHEMA_ARRAY),
                (Config[])configs.toArray(EMPTY_CONFIG_ARRAY), linkTo, options, errorWatcher, false, null, null);

        if (errorWatcher.hasError())
        {
            throw new XmlException(errorWatcher.firstError());
        }

        return stsi;
    }
View Full Code Here

Examples of org.apache.xmlbeans.impl.common.XmlErrorWatcher.firstError()

                null, (Schema[])schemas.toArray(EMPTY_SCHEMA_ARRAY),
                (Config[])configs.toArray(EMPTY_CONFIG_ARRAY), linkTo, options, errorWatcher, false, null, null);

        if (errorWatcher.hasError())
        {
            throw new XmlException(errorWatcher.firstError());
        }

        return stsi;
    }
View Full Code Here

Examples of org.apache.xmlbeans.impl.common.XmlErrorWatcher.firstError()

            config, linkTo, options, errorWatcher, filer!=null, null, null, null);

        // if there is an error and compile didn't recover (stsi==null), throw exception
        if (errorWatcher.hasError() && stsi == null)
        {
            throw new XmlException(errorWatcher.firstError());
        }

        if (stsi != null && !stsi.isPartial() && filer != null)
        {
            stsi.save(filer);
View Full Code Here

Examples of org.sonar.server.exceptions.BadRequestException.firstError()

      validation.validate("abc", newArrayList("a", "b", "c"));
      fail();
    } catch (Exception e) {
      assertThat(e).isInstanceOf(BadRequestException.class);
      BadRequestException badRequestException = (BadRequestException) e;
      assertThat(badRequestException.firstError().getParams()[0]).isEqualTo("abc");
      assertThat(badRequestException.firstError().getParams()[1]).isEqualTo("a, b, c");
    }
  }

}
View Full Code Here

Examples of org.sonar.server.exceptions.BadRequestException.firstError()

      fail();
    } catch (Exception e) {
      assertThat(e).isInstanceOf(BadRequestException.class);
      BadRequestException badRequestException = (BadRequestException) e;
      assertThat(badRequestException.firstError().getParams()[0]).isEqualTo("abc");
      assertThat(badRequestException.firstError().getParams()[1]).isEqualTo("a, b, c");
    }
  }

}
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.