1 29 package com.hp.hpl.jena.rdf.model; 30 31 import java.io.PrintStream ; 32 import java.io.PrintWriter ; 33 34 39 public class RDFError extends java.lang.Error { 40 41 Throwable nestedException = null; 42 43 public RDFError(Exception e) { 44 super(e.toString()); 45 } 46 47 public RDFError(String s) { 48 super(s); 49 } 50 51 public void printStackTrace() { 52 if (nestedException != null) { 53 nestedException.printStackTrace(); 54 } else { 55 super.printStackTrace(); 56 } 57 } 58 59 public void printStackTrace(PrintStream s) { 60 if (nestedException != null) { 61 nestedException.printStackTrace(s); 62 } else { 63 super.printStackTrace(s); 64 } 65 } 66 67 public void printStackTrace(PrintWriter s) { 68 if (nestedException != null) { 69 nestedException.printStackTrace(s); 70 } else { 71 super.printStackTrace(s); 72 } 73 } 74 } 75 | Popular Tags |