|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.biojava.bio.BioException
public class BioException
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.
Constructor Summary | |
---|---|
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 |
---|
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 |
---|
public BioException(String message)
message
- the messagepublic BioException(Throwable ex)
ex
- the Throwable that caused this BioExceptionpublic BioException(Throwable ex, String message)
ex
- the Throwable that caused this BioExceptionmessage
- the messagepublic BioException(String message, Throwable ex)
message
- the messageex
- the Throwable that caused this BioExceptionpublic BioException()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |