Skip to content

Commit f9b1b0e

Browse files
committed
Make ErrorEvent also implement IEvent
1 parent f07e61d commit f9b1b0e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

library/src/main/java/com/proxerme/library/event/error/ErrorEvent.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
import android.support.annotation.NonNull;
44

55
import com.proxerme.library.connection.ProxerException;
6+
import com.proxerme.library.event.IEvent;
67

78
/**
89
* TODO: Describe Class
910
*
1011
* @author Ruben Gees
1112
*/
12-
public abstract class ErrorEvent {
13+
public abstract class ErrorEvent implements IEvent<ProxerException> {
1314

1415
private ProxerException exception;
1516

@@ -18,7 +19,8 @@ public ErrorEvent(@NonNull ProxerException exception) {
1819
}
1920

2021
@NonNull
21-
public ProxerException getException() {
22+
@Override
23+
public final ProxerException getItem() {
2224
return exception;
2325
}
2426
}

0 commit comments

Comments
 (0)