org.apache.shiro.dao
Class InvalidResourceUsageException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.shiro.ShiroException
                  extended by org.apache.shiro.dao.DataAccessException
                      extended by org.apache.shiro.dao.InvalidResourceUsageException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
UnsupportedAuthenticationMechanismException

public class InvalidResourceUsageException
extends DataAccessException

Root exception indicating invalid or incorrect usage of a data access resource. This is thrown typically when incorrectly using the resource or its API.

Since:
1.2
See Also:
Serialized Form

Constructor Summary
InvalidResourceUsageException(String message)
          Constructs an InvalidResourceUsageException with a message explaining the cause of the exception.
InvalidResourceUsageException(String message, Throwable cause)
          Constructs a InvalidResourceUsageException with a message explaining the cause of the exception.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvalidResourceUsageException

public InvalidResourceUsageException(String message)
Constructs an InvalidResourceUsageException with a message explaining the cause of the exception.

Parameters:
message - the message explaining the cause of the exception

InvalidResourceUsageException

public InvalidResourceUsageException(String message,
                                     Throwable cause)
Constructs a InvalidResourceUsageException with a message explaining the cause of the exception.

Parameters:
message - the explanation
cause - the root cause of the exception, typically an API-specific exception


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.