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

pl.allegro.tech.hermes.domain.oauth.OAuthProviderAlreadyExistsException Maven / Gradle / Ivy

There is a newer version: 2.6.21
Show newest version
package pl.allegro.tech.hermes.domain.oauth;

import pl.allegro.tech.hermes.api.ErrorCode;
import pl.allegro.tech.hermes.api.OAuthProvider;
import pl.allegro.tech.hermes.common.exception.HermesException;

public class OAuthProviderAlreadyExistsException extends HermesException {

    public OAuthProviderAlreadyExistsException(OAuthProvider oAuthProvider, Throwable cause) {
        super(String.format("OAuth Provider %s already exists", oAuthProvider.getName()), cause);
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy