001 package com.thaiopensource.relaxng.parse; 002 003 public class BuildException extends RuntimeException { 004 private final Throwable cause; 005 public BuildException(Throwable cause) { 006 if (cause == null) 007 throw new NullPointerException("null cause"); 008 this.cause = cause; 009 } 010 011 public Throwable getCause() { 012 return cause; 013 } 014 }