org.biojava.bio
Class BioError

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Error
          extended byorg.biojava.utils.NestedError
              extended byorg.biojava.bio.BioError
All Implemented Interfaces:
java.io.Serializable

public class BioError
extends NestedError

A nestable biological error.

Author:
Matthew Pocock
See Also:
Serialized Form
For advanced users:
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.
For developers:
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.Throwable ex)
          Create a new BioError with a cause.
BioError(java.lang.Throwable ex, java.lang.String message)
          Create a new BioError with a cause and a message.
 
Methods inherited from class org.biojava.utils.NestedError
getWrappedException, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BioError

public BioError(java.lang.String message)
Create a new BioError with a message.

Parameters:
message - the message

BioError

public BioError(java.lang.Throwable ex)
Create a new BioError with a cause.

Parameters:
ex - the Throwable that caused this BioError

BioError

public BioError(java.lang.Throwable ex,
                java.lang.String message)
Create a new BioError with a cause and a message.

Parameters:
ex - the Throwable that caused this BioError
message - the message

BioError

public BioError()
Create a new BioError.