diff --git a/app/src/main/java/eu/droogers/smsmatrix/Matrix.java b/app/src/main/java/eu/droogers/smsmatrix/Matrix.java index b251858..321cbbf 100644 --- a/app/src/main/java/eu/droogers/smsmatrix/Matrix.java +++ b/app/src/main/java/eu/droogers/smsmatrix/Matrix.java @@ -28,6 +28,7 @@ import org.matrix.androidsdk.listeners.MXMediaUploadListener; import org.matrix.androidsdk.rest.callback.SimpleApiCallback; import org.matrix.androidsdk.rest.client.LoginRestClient; import org.matrix.androidsdk.rest.model.Event; +import org.matrix.androidsdk.rest.model.MatrixError; import org.matrix.androidsdk.rest.model.Message; import org.matrix.androidsdk.rest.model.login.Credentials; @@ -90,6 +91,21 @@ public class Matrix { super.onSuccess(credentials); onLogin(credentials); } + + @Override + public void onMatrixError(MatrixError e) { + Log.e(TAG, "onLogin MatrixError" + e); + } + + @Override + public void onNetworkError(Exception e) { + Log.e(TAG, "onLogin Network error" + e); + } + + @Override + public void onUnexpectedError(Exception e) { + Log.e(TAG, "onLogin Unexpected error" + e); + } }); }