|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Error
org.biojava.bio.BioError
public class BioError
A nestable biological error. Catch this whenever it, or one of it's sub-classes are thrown and you know what to do once you've got it. Note: in general, you should not be catching errors. However, there are cases where it is necisary e.g. for logging. You will nearly always want to either re-throw the Error, throw a new Error or exit the current thread. Throw this when something has gone wrong and in general people should not be handeling it.
Constructor Summary | |
---|---|
BioError()
Create a new BioError. |
|
BioError(java.lang.String message)
Create a new BioError with a message. |
|
BioError(java.lang.String message,
java.lang.Throwable ex)
Create a new BioError with a cause and a message. |
|
BioError(java.lang.Throwable ex)
Create a new BioError with a cause. |
|
BioError(java.lang.Throwable ex,
java.lang.String message)
Deprecated. Use BioError(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 BioError(java.lang.String message)
message
- the messagepublic BioError(java.lang.Throwable ex)
ex
- the Throwable that caused this BioErrorpublic BioError(java.lang.Throwable ex, java.lang.String message)
ex
- the Throwable that caused this BioErrormessage
- the messagepublic BioError(java.lang.String message, java.lang.Throwable ex)
message
- the messageex
- the Throwable that caused this BioErrorpublic BioError()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |