Package org.biojava.utils
Class ChangeVetoException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.biojava.utils.ChangeVetoException
-
- All Implemented Interfaces:
java.io.Serializable
public class ChangeVetoException extends java.lang.RuntimeExceptionException which is thrown when a ChangeListener does not wish a change to take place. Since BioJava 1.5 theChangeVetoExceptionhas been changed to extendRuntimeException. It is therefore an unchecked exception.- Since:
- 1.1
- Author:
- Thomas Down, Matthew Pocock, Mark Schreiber
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ChangeVetoException()ChangeVetoException(java.lang.String reason)Create an exception with a detail messageChangeVetoException(java.lang.String reason, java.lang.Throwable cause)ChangeVetoException(java.lang.Throwable ex, java.lang.String reason)Deprecated.use new ChangeVetoException(reason, ex);ChangeVetoException(java.lang.Throwable ex, ChangeEvent change)Propogate an exception without (additional) explanation.ChangeVetoException(java.lang.Throwable ex, ChangeEvent change, java.lang.String reason)Propogate an exception, giving a detail messageChangeVetoException(ChangeEvent change)Construct an exception to veto a change without explanation.ChangeVetoException(ChangeEvent change, java.lang.String reason)Construct an exception to veto a change for a specified reason.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChangeEventgetChangeEvent()Return the ChangeEvent which is being vetoed.
-
-
-
Constructor Detail
-
ChangeVetoException
public ChangeVetoException()
-
ChangeVetoException
public ChangeVetoException(ChangeEvent change)
Construct an exception to veto a change without explanation.- Parameters:
change- An event which is being vetoed.
-
ChangeVetoException
public ChangeVetoException(java.lang.String reason)
Create an exception with a detail message- Parameters:
reason- A detail message.
-
ChangeVetoException
public ChangeVetoException(ChangeEvent change, java.lang.String reason)
Construct an exception to veto a change for a specified reason.- Parameters:
change- An event which is being vetoed.reason- A detail message.
-
ChangeVetoException
public ChangeVetoException(java.lang.Throwable ex, ChangeEvent change)Propogate an exception without (additional) explanation.- Parameters:
ex- A parent exceptionchange- An event which is being vetoed.
-
ChangeVetoException
public ChangeVetoException(java.lang.Throwable ex, java.lang.String reason)Deprecated.use new ChangeVetoException(reason, ex);Propogate an exception, giving a detail message- Parameters:
ex- A parent exceptionreason- A detail message.
-
ChangeVetoException
public ChangeVetoException(java.lang.String reason, java.lang.Throwable cause)
-
ChangeVetoException
public ChangeVetoException(java.lang.Throwable ex, ChangeEvent change, java.lang.String reason)Propogate an exception, giving a detail message- Parameters:
ex- A parent exceptionchange- An event which is being vetoed.reason- A detail message.
-
-
Method Detail
-
getChangeEvent
public ChangeEvent getChangeEvent()
Return the ChangeEvent which is being vetoed.- Returns:
- The ChangeEvent value
-
-