| SecurityException.java |
/*
* JBoss, the OpenSource EJB server
*
* Distributable under LGPL license. See terms of license at gnu.org.
*/
package javax.resource.spi;
import javax.resource.ResourceException;
/**
* A SecurityException indicates error conditions related to the security
* contract between an application server and a resource adapter. Common types
* of conditions represented by this exception include: invalid security
* information - subject, failure to connect, failure to authenticate, access
* control exception.
*/
public class SecurityException extends ResourceException
{
/**
* Create an exception.
*/
public SecurityException()
{
super();
}
/**
* Create an exception with a reason.
*/
public SecurityException(String reason)
{
super(reason);
}
/**
* Create an exception with a reason and an errorCode.
*/
public SecurityException(String reason, String errorCode)
{
super(reason, errorCode);
}
/**
* Create an exception with a reason and cause.
*
* @param reason the reason
* @param cause the cause
*/
public SecurityException(String reason, Throwable cause)
{
super(reason, cause);
}
/**
* Create an exception with a cause.
*
* @param cause the cause
*/
public SecurityException(Throwable cause)
{
super(cause);
}
}| SecurityException.java |