1 5 6 package com.hp.hpl.jena.shared; 7 8 import java.io.*; 9 10 16 public class JenaException extends RuntimeException { 17 18 22 public JenaException( String message ) { 23 super(message); 24 } 25 26 public JenaException() 27 { super(); } 28 29 private Throwable cause; 30 33 public Throwable getCause() { 34 return cause; 35 } 36 37 42 public JenaException( Throwable cause ) 43 { this( "rethrew: " + cause.toString(), cause ); } 44 45 public JenaException( String message, Throwable cause ) 46 { super( message ); this.cause = cause; } 47 48 52 53 public void printStackTrace( PrintStream s ) 54 { 55 if (cause != null) cause.printStackTrace( s ); 56 super.printStackTrace( s ); 57 } 58 59 public void printStackTrace( PrintWriter w ) 60 { 61 if (cause != null) cause.printStackTrace( w ); 62 super.printStackTrace( w ); 63 } 64 65 } 66 | Popular Tags |