atg.security
Class TooManyAccountsException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by atg.core.exception.ContainerException
              extended by atg.security.SecurityException
                  extended by atg.security.TooManyAccountsException
All Implemented Interfaces:
ContainableException, java.io.Serializable

public class TooManyAccountsException
extends SecurityException

Exception thrown when an attempt is made to list more accounts than the account manager is willing to provide.

See Also:
Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
           
 
Constructor Summary
TooManyAccountsException()
          Creates an exception indicating that too many accounts were requested.
TooManyAccountsException(int pAllowed, int pRequested)
          Creates an exception indicating that too many accounts were requested, including the number of accounts which would have been returned had the query succeeded and how many the server would let us have.
 
Method Summary
 int getAllowedCount()
          Returns the number of accounts that the account manager would have allowed, or zero if it is unspecified.
 int getRequestCount()
          Returns the number of accounts that the request would have returned, or zero if it is unknown or unspecified.
 
Methods inherited from class atg.core.exception.ContainerException
getSourceException, printStackTrace, printStackTrace, printStackTrace, printStackTrace, setSourceException, toString, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Constructor Detail

TooManyAccountsException

public TooManyAccountsException()
Creates an exception indicating that too many accounts were requested.


TooManyAccountsException

public TooManyAccountsException(int pAllowed,
                                int pRequested)
Creates an exception indicating that too many accounts were requested, including the number of accounts which would have been returned had the query succeeded and how many the server would let us have.

Parameters:
pAllowed - The number of accounts that the server would allow, or zero if this is not specified.
pRequested - The number of accounts that the request would have returned, or zero if this is unknown or unspecified.
Method Detail

getAllowedCount

public int getAllowedCount()
Returns the number of accounts that the account manager would have allowed, or zero if it is unspecified.


getRequestCount

public int getRequestCount()
Returns the number of accounts that the request would have returned, or zero if it is unknown or unspecified.