net.sf.mud4j.ability
Class AbilityException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by net.sf.mud4j.ability.AbilityException
All Implemented Interfaces:
java.io.Serializable

public class AbilityException
extends java.lang.Exception

An exception that occurs related to an exceptional condition with an ability.

Author:
Matthew Purland
See Also:
Serialized Form

Constructor Summary
AbilityException(Ability ability)
          Create an ability exception that can be tracked to a particular ability.
AbilityException(java.lang.String message, Ability ability)
          Creates an ability exception that can be tracked to a particular ability with a message.
 
Method Summary
 Ability getAbility()
          Return the ability.
 
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

AbilityException

public AbilityException(Ability ability)
Create an ability exception that can be tracked to a particular ability.

Parameters:
ability - Ability that throwed the exception.

AbilityException

public AbilityException(java.lang.String message,
                        Ability ability)
Creates an ability exception that can be tracked to a particular ability with a message.

Parameters:
message - Exception message for the exception.
ability - Ability that throwed the exception.
Method Detail

getAbility

public Ability getAbility()
Return the ability.

Returns:
Returns an ability for the exception.


Copyright © 2006-2007 mud4j. All Rights Reserved.