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

io.niowire.inspection.NioAuthenticationException Maven / Gradle / Ivy

Go to download

Niowire is a non blocking socket server framework for java. It makes the task of writing and implementing a highly scalable server capable of many simultaneous connections easy. All that has to be written to use it are a Serializer to parse the binary stream into objects (or you can use one of the built in ones), an Inspector which filters, authenticates and modifies packets packets (or again, use one of the built in ones) and one or more services which uses the data packets (more built in ones here too!)

There is a newer version: 0.2
Show newest version
/**
 * This file is part of Niowire.
 *
 * Niowire is free software: you can redistribute it and/or modify it under the
 * terms of the Lesser GNU General Public License as published by the Free
 * Software Foundation, either version 3 of the License, or (at your option) any
 * later version.
 *
 * Niowire is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the Lesser GNU General Public License for more
 * details.
 *
 * You should have received a copy of the Lesser GNU General Public License
 * along with Niowire. If not, see .
 */
package io.niowire.inspection;

import io.niowire.NiowireException;

/**
 * This exception is thrown when a packet fails authenticating. When this is
 * thrown then the connection to the client will be closed and the NioConnection
 * object and all services will be shut down.
 *
 * @author Trent Houliston
 */
public class NioAuthenticationException extends NiowireException
{
	//Serial Version UID
	private static final long serialVersionUID = 1L;

	/**
	 * Default constructor, has no message or cause.
	 */
	public NioAuthenticationException()
	{
		super();
	}

	/**
	 * Construct a new NioAuthenticationException with the passed message
	 *
	 * @param message the message to attach to this exception
	 */
	public NioAuthenticationException(String message)
	{
		super(message);
	}

	/**
	 * Construct a new NioAuthenticationException with a message and a cause.
	 *
	 * @param message the message to attach to this exception
	 * @param cause   the cause of this exception
	 */
	public NioAuthenticationException(String message, Throwable cause)
	{
		super(message, cause);
	}

	/**
	 * Constructs a new NioAuthenticationException with a cause
	 *
	 * @param cause the cause of this exception
	 */
	public NioAuthenticationException(Throwable cause)
	{
		super(cause);
	}
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy