Package org.biojava.bio
Class BioException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.biojava.bio.BioException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AutomatonException
,CircularReferenceException
,DuplicateTaxonException
,IllegalAlphabetException
,IllegalIDException
,IllegalSymbolException
,IllegalTransitionException
,ParseException
,RegexException
,UnsupportedChromatogramFormatException
public class BioException extends Exception
A nestable biological exception. Catch this whenever a method throws it, and you want to handle the exception. Throw this whenever you have caught a Throwable and need to throw an Exception or BioException in your method. Be sure to wrap up any causual throwable. It makes debugging your (and other peoples') code much easier.- Since:
- 1.0
- Author:
- Matthew Pocock
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BioException()
Create a new BioException.BioException(String message)
Create a new BioException with a message.BioException(String message, Throwable ex)
Create a new BioException with a cause and a message.BioException(Throwable ex)
Create a new BioException with a cause.BioException(Throwable ex, String message)
Deprecated.use new BioException(message, ex) instead
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
BioException
public BioException(String message)
Create a new BioException with a message.- Parameters:
message
- the message
-
BioException
public BioException(Throwable ex)
Create a new BioException with a cause.- Parameters:
ex
- the Throwable that caused this BioException
-
BioException
public BioException(Throwable ex, String message)
Deprecated.use new BioException(message, ex) insteadCreate a new BioException with a cause and a message.- Parameters:
ex
- the Throwable that caused this BioExceptionmessage
- the message
-
BioException
public BioException(String message, Throwable ex)
Create a new BioException with a cause and a message.- Parameters:
message
- the messageex
- the Throwable that caused this BioException
-
BioException
public BioException()
Create a new BioException.
-
-