1 18 package org.apache.batik.svggen; 19 20 import java.io.IOException ; 21 22 28 public class SVGGraphics2DIOException extends IOException { 29 30 private IOException embedded; 31 32 37 public SVGGraphics2DIOException(String s) { 38 this(s, null); 39 } 40 41 46 public SVGGraphics2DIOException(IOException ex) { 47 this(null, ex); 48 } 49 50 56 public SVGGraphics2DIOException(String s, IOException ex) { 57 super(s); 58 embedded = ex; 59 } 60 61 66 public String getMessage() { 67 String msg = super.getMessage(); 68 if (msg != null) { 69 return msg; 70 } else if (embedded != null) { 71 return embedded.getMessage(); 72 } else { 73 return null; 74 } 75 } 76 77 80 public IOException getException() { 81 return embedded; 82 } 83 } 84 | Popular Tags |