|
@@ -67,6 +67,7 @@ import com.dmdirc.parser.events.MOTDStartEvent;
|
67
|
67
|
import com.dmdirc.parser.events.NickChangeEvent;
|
68
|
68
|
import com.dmdirc.parser.events.NickInUseEvent;
|
69
|
69
|
import com.dmdirc.parser.events.NumericEvent;
|
|
70
|
+import com.dmdirc.parser.events.ParserErrorEvent;
|
70
|
71
|
import com.dmdirc.parser.events.PingFailureEvent;
|
71
|
72
|
import com.dmdirc.parser.events.PingSentEvent;
|
72
|
73
|
import com.dmdirc.parser.events.PingSuccessEvent;
|
|
@@ -160,6 +161,13 @@ public class ServerEventHandler extends EventHandler {
|
160
|
161
|
}
|
161
|
162
|
}
|
162
|
163
|
|
|
164
|
+ @SuppressWarnings("ThrowableResultOfMethodCallIgnored")
|
|
165
|
+ @Handler
|
|
166
|
+ public void onErrorInfo(final ParserErrorEvent event) {
|
|
167
|
+ eventBus.publishAsync(new AppErrorEvent(ErrorLevel.UNKNOWN, event.getThrowable(),
|
|
168
|
+ event.getThrowable().getMessage(), ""));
|
|
169
|
+ }
|
|
170
|
+
|
163
|
171
|
@SuppressWarnings("ThrowableResultOfMethodCallIgnored")
|
164
|
172
|
@Handler
|
165
|
173
|
public void onErrorInfo(final ErrorInfoEvent event) {
|