01: package org.kohsuke.rngom.ast.builder;
02:
03: /**
04: * Signals an error while building schemas.
05: *
06: * <p>
07: * Only {@link SchemaBuilder} can throw this exception to
08: * abort the parsing in the middle.
09: */
10: public class BuildException extends RuntimeException {
11: private final Throwable cause;
12:
13: public BuildException(Throwable cause) {
14: if (cause == null)
15: throw new NullPointerException("null cause");
16: this .cause = cause;
17: }
18:
19: public Throwable getCause() {
20: return cause;
21: }
22: }
|