1 10 11 package org.mule.config; 12 13 import java.util.Collections ; 14 import java.util.Map ; 15 16 import org.mule.umo.UMOException; 17 18 21 public final class UMOExceptionReader implements ExceptionReader 22 { 23 24 public String getMessage(Throwable t) 25 { 26 return t.getMessage(); 27 } 28 29 public Throwable getCause(Throwable t) 30 { 31 return t.getCause(); 32 } 33 34 public Class getExceptionType() 35 { 36 return UMOException.class; 37 } 38 39 44 public Map getInfo(Throwable t) 45 { 46 return (t instanceof UMOException ? ((UMOException)t).getInfo() : Collections.EMPTY_MAP); 47 } 48 49 } 50 | Popular Tags |