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

com.payu.common.client.exception.IntermoduleException Maven / Gradle / Ivy

There is a newer version: 0.0.7
Show newest version
package com.payu.common.client.exception;

import com.payu.common.client.error.ApiClientError;
import com.payu.common.client.handler.IntermoduleRestTemplateResponseErrorHandler;

/**
 * Exception levée par un module Payu au niveau client remontée par un Handler Restemplate @{@link
 * IntermoduleRestTemplateResponseErrorHandler}
 */
public class IntermoduleException extends AbstractPayuException {
  private final ApiClientError apiClientError;

  public IntermoduleException(String message, ApiClientError apiClientError) {
    super(message, apiClientError.getCode());
    this.apiClientError = apiClientError;
  }

  public IntermoduleException(String message, ApiClientError apiClientError, Throwable cause) {
    super(message, cause, apiClientError.getCode());
    this.apiClientError = apiClientError;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy