|
@@ -26,8 +26,6 @@ import com.dmdirc.parser.events.ParserErrorEvent;
|
26
|
26
|
import com.dmdirc.parser.events.ParserEvent;
|
27
|
27
|
import com.dmdirc.parser.interfaces.Parser;
|
28
|
28
|
|
29
|
|
-import com.google.common.base.Throwables;
|
30
|
|
-
|
31
|
29
|
import java.util.Date;
|
32
|
30
|
|
33
|
31
|
import net.engio.mbassy.bus.MBassador;
|
|
@@ -89,10 +87,9 @@ public class CallbackManager extends MBassador<ParserEvent> {
|
89
|
87
|
}
|
90
|
88
|
|
91
|
89
|
synchronized (errorHandlerLock) {
|
92
|
|
- final Throwable error = e.getCause().getCause();
|
93
|
|
- publish(new ParserErrorEvent(parser, new Date(),
|
94
|
|
- new ParserError(ParserError.ERROR_EXCEPTION,
|
95
|
|
- error.getMessage(), Throwables.getStackTraceAsString(error))));
|
|
90
|
+ publish(new ParserErrorEvent(parser, new Date(), new Exception(
|
|
91
|
+ "Message: " + e.getCause().getCause().getMessage() + " in Handler: "
|
|
92
|
+ + e.getHandler(), e.getCause().getCause())));
|
96
|
93
|
}
|
97
|
94
|
});
|
98
|
95
|
}
|