[mud4j-commit] SF.net SVN: mud4j: [132] trunk/mud4j-core/src/java/net/sf/mud4j/ability/ AbilityExce
Status: Pre-Alpha
Brought to you by:
mpurland
From: <mpu...@us...> - 2007-06-03 01:29:35
|
Revision: 132 http://mud4j.svn.sourceforge.net/mud4j/?rev=132&view=rev Author: mpurland Date: 2007-06-02 18:29:23 -0700 (Sat, 02 Jun 2007) Log Message: ----------- Refactor exception to RuntimeException and add serial id. Modified Paths: -------------- trunk/mud4j-core/src/java/net/sf/mud4j/ability/AbilityException.java Modified: trunk/mud4j-core/src/java/net/sf/mud4j/ability/AbilityException.java =================================================================== --- trunk/mud4j-core/src/java/net/sf/mud4j/ability/AbilityException.java 2007-06-03 01:27:15 UTC (rev 131) +++ trunk/mud4j-core/src/java/net/sf/mud4j/ability/AbilityException.java 2007-06-03 01:29:23 UTC (rev 132) @@ -17,19 +17,19 @@ package net.sf.mud4j.ability; /** - * An exception that occurs related to an exceptional condition with - * an ability. - * + * An exception that occurs related to an exceptional condition with an ability. + * * @author Matthew Purland */ -public class AbilityException extends Exception { - +public class AbilityException extends RuntimeException { + + private static final long serialVersionUID = -2414968678094658454L; + // Ability that the exceptio occurred upon. private Ability ability; - + /** - * Create an ability exception that can be tracked - * to a particular ability. + * Create an ability exception that can be tracked to a particular ability. * * @param ability Ability that throwed the exception. */ @@ -37,10 +37,10 @@ super(); this.ability = ability; } - + /** - * Creates an ability exception that can be tracked - * to a particular ability with a message. + * Creates an ability exception that can be tracked to a particular ability + * with a message. * * @param message Exception message for the exception. * @param ability Ability that throwed the exception. @@ -49,9 +49,10 @@ super(message); this.ability = ability; } - + /** * Return the ability. + * * @return Returns an ability for the exception. */ public Ability getAbility() { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |