1 package com.thaiopensource.relaxng.parse;2 3 public class BuildException extends RuntimeException {4 private final Throwable cause;5 public BuildException(Throwable cause) {6 if (cause == null)7 throw new NullPointerException ("null cause");8 this.cause = cause;9 }10 11 public Throwable getCause() {12 return cause;13 }14 }15