com.payu.common.client.exception.UnauthorizedAccessException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ms-common-client Show documentation
Show all versions of ms-common-client Show documentation
Librairie commune pour les modules MS Clients
package com.payu.common.client.exception;
import lombok.Getter;
import lombok.NoArgsConstructor;
@Getter
@NoArgsConstructor
public class UnauthorizedAccessException extends AbstractPayuException {
private String code;
public UnauthorizedAccessException(String message) {
super(message, IntermoduleError.ERREUR_AUTORISATION.getCode());
}
/**
* Constructeur avec message et code
*
* @param message message de l'erreur
* @param code le code de l'erreur
*/
public UnauthorizedAccessException(String message, String code) {
super(message);
this.code = code;
}
public UnauthorizedAccessException(String message, Throwable cause) {
super(message, cause, IntermoduleError.ERREUR_AUTORISATION.getCode());
}
public UnauthorizedAccessException(String message, Throwable cause, String code) {
super(message, cause, code);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy