1 4 5 package org.objectweb.perseus.fos.api; 6 7 11 public class FosException extends Exception { 12 15 private Exception nestedException = null; 16 17 21 public FosException(String errmsg) { 22 super(errmsg); 23 } 24 25 29 public FosException(String errmsg, Exception e) { 30 super(errmsg + " [has a nested exception]"); 31 nestedException = e; 32 } 33 34 38 public Exception getNestedException() { 39 return nestedException; 40 } 41 } 42 | Popular Tags |