1
2
3
4
5
6
7 package org.mule.config;
8
9 import org.mule.api.config.ExceptionReader;
10
11 import java.util.HashMap;
12 import java.util.Map;
13
14
15
16
17
18 public final class DefaultExceptionReader implements ExceptionReader
19 {
20
21 private Map<?, ?> info = new HashMap<Object, Object>();
22
23 public String getMessage(Throwable t)
24 {
25 return t.getMessage();
26 }
27
28 public Throwable getCause(Throwable t)
29 {
30 return t.getCause();
31 }
32
33 public Class<?> getExceptionType()
34 {
35 return Throwable.class;
36 }
37
38
39
40
41
42
43 public Map<?, ?> getInfo(Throwable t)
44 {
45 return info;
46 }
47 }