htsjdk.tribble
Class TribbleException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by htsjdk.tribble.TribbleException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
TribbleException.FeatureFileDoesntExist, TribbleException.InternalCodecException, TribbleException.InvalidDecodeLine, TribbleException.InvalidHeader, TribbleException.MalformedFeatureFile, TribbleException.TabixReaderFailure, TribbleException.UnableToCreateCorrectIndexType, TribbleException.UnableToReadIndexFile

public class TribbleException
extends java.lang.RuntimeException

See Also:
Serialized Form

Nested Class Summary
static class TribbleException.FeatureFileDoesntExist
           
static class TribbleException.InternalCodecException
           
static class TribbleException.InvalidDecodeLine
           
static class TribbleException.InvalidHeader
           
static class TribbleException.MalformedFeatureFile
           
static class TribbleException.TabixReaderFailure
           
static class TribbleException.UnableToCreateCorrectIndexType
           
static class TribbleException.UnableToReadIndexFile
           
 
Constructor Summary
TribbleException(java.lang.String msg)
           
TribbleException(java.lang.String message, java.lang.Throwable throwable)
           
 
Method Summary
 java.lang.String getMessage()
          override the default message with ours, which attaches the source file in question
 void setSource(java.lang.String source)
          set the source for the file; where we got lines from
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

TribbleException

public TribbleException(java.lang.String msg)

TribbleException

public TribbleException(java.lang.String message,
                        java.lang.Throwable throwable)
Method Detail

setSource

public void setSource(java.lang.String source)
set the source for the file; where we got lines from

Parameters:
source - the source location, usually a file though it could be a http link or other source

getMessage

public java.lang.String getMessage()
override the default message with ours, which attaches the source file in question

Overrides:
getMessage in class java.lang.Throwable
Returns:
a string with our internal error, along with the causitive source file (or other input source)