1 31 36 37 package com.hp.hpl.jena.rdf.arp; 38 39 import org.xml.sax.SAXException ; 40 import org.xml.sax.SAXParseException ; 41 47 class WrappedException extends java.lang.RuntimeException { 48 final Exception inner; 49 50 WrappedException(SAXException e) { 51 Exception in0 = e.getException(); 52 if ( in0 == null 53 || !( (in0 instanceof RuntimeException ) 54 ) 55 ) 56 inner = e; 57 else 58 inner = in0; 59 } 60 WrappedException(Exception e) { 61 inner = e; 62 } 63 67 void throwMe() throws SAXException { 68 if ( inner instanceof SAXException ) { 69 throw (SAXException )inner; 70 } 71 if ( inner instanceof RuntimeException ) { 72 throw (RuntimeException )inner; 73 } 74 throw new SAXParseException (null,null,inner); 75 } 76 77 78 } 79 | Popular Tags |