1 18 package org.apache.batik.transcoder; 19 20 26 public class TranscoderException extends Exception { 27 28 29 protected Exception ex; 30 31 35 public TranscoderException(String s) { 36 this(s, null); 37 } 38 39 43 public TranscoderException(Exception ex) { 44 this(null, ex); 45 } 46 47 52 public TranscoderException(String s, Exception ex) { 53 super(s); 54 this.ex = ex; 55 } 56 57 62 public String getMessage() { 63 String msg = super.getMessage(); 64 if (ex != null) { 65 msg += "\nEnclosed Exception:\n"; 66 msg += ex.getMessage(); 67 } 68 return msg; 69 } 70 71 74 public Exception getException() { 75 return ex; 76 } 77 } 78 | Popular Tags |