package com.atlassian.bitbucket.auth;

import com.atlassian.bitbucket.i18n.KeyedMessage;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;

/**
 * A specialisation of {@link AuthenticationException}, thrown when the underlying authentication subsystem fails.
 * This exception indicates authentication could not be correctly attempted due to some underlying failure, rather
 * than a case where authentication was attempted and failed due to incorrect credentials or some abnormality with
 * the user's account.
 */
public class AuthenticationSystemException extends AuthenticationException {

    public AuthenticationSystemException(@Nonnull KeyedMessage message) {
        super(message);
    }

    public AuthenticationSystemException(@Nonnull KeyedMessage message, @Nullable Throwable cause) {
        super(message, cause);
    }
}
