Package htsjdk.tribble
Class TribbleException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
htsjdk.tribble.TribbleException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
TribbleException.CorruptedIndexFile,TribbleException.FeatureFileDoesntExist,TribbleException.InternalCodecException,TribbleException.InvalidDecodeLine,TribbleException.InvalidHeader,TribbleException.MalformedFeatureFile,TribbleException.TabixReaderFailure,TribbleException.UnableToCreateCorrectIndexType,TribbleException.UnableToReadIndexFile
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic class -
Constructor Summary
ConstructorsConstructorDescriptionTribbleException(String msg) TribbleException(String message, Throwable throwable) -
Method Summary
Modifier and TypeMethodDescriptionoverride the default message with ours, which attaches the source file in questionvoidset the source for the file; where we got lines fromMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TribbleException
-
TribbleException
-
-
Method Details
-
setSource
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
override the default message with ours, which attaches the source file in question- Overrides:
getMessagein classThrowable- Returns:
- a string with our internal error, along with the causitive source file (or other input source)
-