|
@@ -22,6 +22,7 @@
|
22
|
22
|
|
23
|
23
|
package com.dmdirc;
|
24
|
24
|
|
|
25
|
+import com.dmdirc.events.AppErrorEvent;
|
25
|
26
|
import com.dmdirc.events.DisplayableEvent;
|
26
|
27
|
import com.dmdirc.events.EventUtils;
|
27
|
28
|
import com.dmdirc.events.QuerySelfActionEvent;
|
|
@@ -48,9 +49,9 @@ import com.dmdirc.events.ServerUsermodesEvent;
|
48
|
49
|
import com.dmdirc.events.ServerWalldesyncEvent;
|
49
|
50
|
import com.dmdirc.events.ServerWallopsEvent;
|
50
|
51
|
import com.dmdirc.events.ServerWallusersEvent;
|
|
52
|
+import com.dmdirc.events.UserErrorEvent;
|
51
|
53
|
import com.dmdirc.interfaces.Connection;
|
52
|
54
|
import com.dmdirc.logger.ErrorLevel;
|
53
|
|
-import com.dmdirc.logger.Logger;
|
54
|
55
|
import com.dmdirc.parser.common.AwayState;
|
55
|
56
|
import com.dmdirc.parser.common.CallbackManager;
|
56
|
57
|
import com.dmdirc.parser.common.ParserError;
|
|
@@ -188,9 +189,9 @@ public class ServerEventHandler extends EventHandler implements
|
188
|
189
|
: new Exception(errorString.toString()); // NOPMD
|
189
|
190
|
|
190
|
191
|
if (errorInfo.isUserError()) {
|
191
|
|
- Logger.userError(errorLevel, errorInfo.getData(), ex);
|
|
192
|
+ eventBus.post(new UserErrorEvent(errorLevel, ex, errorInfo.getData(), ""));
|
192
|
193
|
} else {
|
193
|
|
- Logger.appError(errorLevel, errorInfo.getData(), ex);
|
|
194
|
+ eventBus.post(new AppErrorEvent(errorLevel, ex, errorInfo.getData(), ""));
|
194
|
195
|
}
|
195
|
196
|
}
|
196
|
197
|
|