com.payu.sdk.api.exceptions.SDKException 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.exceptions;
public class SDKException extends Exception {
private final ErrorCode errorCode;
public SDKException(ErrorCode errorCode, String message, Exception innerException) {
super(message, innerException);
this.errorCode = errorCode;
}
public SDKException(ErrorCode errorCode, String message) {
super(message);
this.errorCode = errorCode;
}
public SDKException(ErrorCode errorCode, Exception innerException) {
super(innerException);
this.errorCode = errorCode;
}
public SDKException(ErrorCode errorCode) {
this.errorCode = errorCode;
}
public ErrorCode getErrorCode() {
return errorCode;
}
public enum ErrorCode {
CONVERSION_ERROR,
INVALID_PARAMETERS,
HTTP_EXCEPTION,
NETWORK_EXCEPTION,
API_ERROR
}
}