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

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

There is a newer version: 0.0.7
Show newest version
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