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

pl.allegro.tech.hermes.management.api.auth.AuthException Maven / Gradle / Ivy

There is a newer version: 2.8.0
Show newest version
package pl.allegro.tech.hermes.management.api.auth;

import pl.allegro.tech.hermes.api.ErrorCode;
import pl.allegro.tech.hermes.management.domain.ManagementException;

public class AuthException extends ManagementException {

  public AuthException(String message) {
    super(message);
  }

  public AuthException(RuntimeException ex) {
    super("Exception while authorization: " + ex.getMessage(), ex);
  }

  @Override
  public ErrorCode getCode() {
    return ErrorCode.AUTH_ERROR;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy