CardException, APIException {
APIResource.Error error = GSON.fromJson(rBody,
APIResource.ErrorContainer.class).error;
switch (rCode) {
case 400:
throw new InvalidRequestException(error.message, error.param, null);
case 404:
throw new InvalidRequestException(error.message, error.param, null);
case 401:
throw new AuthenticationException(error.message);
case 402:
throw new CardException(error.message, error.code, error.param, null);
default: