All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.payu.sdk.api.Callback Maven / Gradle / Ivy

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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy