jet.server.api.exception
Class InUseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by jet.JException
              extended by jet.JSException
                  extended by jet.server.api.exception.InUseException
All Implemented Interfaces:
java.io.Serializable

public class InUseException
extends jet.JSException

Exception is thrown when attempting to delete an object, such as a user or group, which is in use as a part of the realm's security policy. For example, a user which is a member of some groups, or is listed in an ACL, cannot be deleted. Similarly, a group which is mentioned in an ACL, or some other groups, cannot be deleted.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class jet.JException
jet.JException.LogLevel
 
Constructor Summary
InUseException(int msgKey)
          Constructs a new InUseException with the specified message, the cause is not initialized.
InUseException(int msgKey, java.lang.Object[] params, java.lang.Throwable cause)
          Constructs a new throwable with the specified detailed message and cause.
InUseException(int msgKey, java.lang.Throwable cause)
          Constructs a new InUseException with the specified detailed message and cause.
InUseException(java.lang.String message)
          Constructs a new InUseException with the specified message, the cause is not initialized.
InUseException(java.lang.Throwable cause)
          Constructs a new InUseException with the specified cause and a null message.
 
Method Summary
 
Methods inherited from class jet.JSException
getErrorKey
 
Methods inherited from class jet.JException
getMessages, getThrowables, logTrace
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InUseException

public InUseException(int msgKey,
                      java.lang.Object[] params,
                      java.lang.Throwable cause)
Constructs a new throwable with the specified detailed message and cause.

Parameters:
msgKey - the message key in strJError, for finding the message, and which will be logged and shown to user.
params - the parameters used for formatting the message string, which can be null.
cause - the cause which is saved for later retrieval by the getCause.

InUseException

public InUseException(int msgKey,
                      java.lang.Throwable cause)
Constructs a new InUseException with the specified detailed message and cause.

Parameters:
msgKey - the message key.
cause - the cause. A null is permitted, and it indicates the cause is nonexistent or unknown.

InUseException

public InUseException(int msgKey)
Constructs a new InUseException with the specified message, the cause is not initialized.

Parameters:
msgKey - the message key.

InUseException

public InUseException(java.lang.Throwable cause)
Constructs a new InUseException with the specified cause and a null message.

Parameters:
cause - the cause.

InUseException

public InUseException(java.lang.String message)
Constructs a new InUseException with the specified message, the cause is not initialized.

Parameters:
message - the detailed message.