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

org.seedstack.seed.security.UnknownAccountException Maven / Gradle / Ivy

/**
 * Copyright (c) 2013-2016, The SeedStack authors 
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */
package org.seedstack.seed.security;

/**
 * Thrown when attempting to authenticate with a principal that doesn't exist in the system (e.g.
 * by specifying a username that doesn't relate to a user account).
 *
 **/
public class UnknownAccountException extends AuthenticationException {

	/** UID */
	private static final long serialVersionUID = 1L;

	/**
	 * Creates a new UnknownAccountException.
	 */
	public UnknownAccountException() {
		super();
	}

	/**
	 * Constructs a new UnknownAccountException.
	 * 
	 * @param message
	 *            the reason for the exception
	 */
	public UnknownAccountException(String message) {
		super(message);
	}

	/**
	 * Constructs a new UnknownAccountException.
	 * 
	 * @param cause
	 *            the underlying Throwable that caused this exception to be
	 *            thrown.
	 */
	public UnknownAccountException(Throwable cause) {
		super(cause);
	}

	/**
	 * Constructs a new UnknownAccountException.
	 * 
	 * @param message
	 *            the reason for the exception
	 * @param cause
	 *            the underlying Throwable that caused this exception to be
	 *            thrown.
	 */
	public UnknownAccountException(String message, Throwable cause) {
		super(message, cause);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy