com.payu.sdk.api.Callback Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api-client Show documentation
Show all versions of api-client Show documentation
A fresh implementation of the PayU API Client for Android
The newest version!
package com.payu.sdk.api;
import com.payu.sdk.api.exceptions.AuthenticationException;
import com.payu.sdk.api.exceptions.HttpException;
import com.payu.sdk.api.exceptions.InvalidParametersException;
import com.payu.sdk.api.exceptions.NetworkException;
import com.payu.sdk.api.exceptions.PayUException;
import com.payu.sdk.api.exceptions.SDKException;
public abstract class Callback {
public abstract void success(T t);
public void httpError(HttpException e) {
error(e);
}
public void networkError(NetworkException e) {
error(e);
}
public void authenticationError(AuthenticationException e) {
error(e);
}
public void callApiError(PayUException e) {
error(e);
}
public void invalidParametersError(InvalidParametersException e) {
error(e);
}
public abstract void error(SDKException e);
}