Class InventoryReaderException
- java.lang.Object
- 
- java.lang.Throwable
- 
- java.lang.Exception
- 
- gov.nasa.pds.harvest.search.inventory.InventoryReaderException
 
 
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class InventoryReaderException extends Exception Exception class for handling errors when reading a PDS Inventory file.- Author:
- mcayanan
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description InventoryReaderException(Exception exception)Constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ExceptiongetException()intgetLineNumber()voidsetLineNumber(int line)Sets the line number.- 
Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
- 
 
- 
- 
- 
Constructor Detail- 
InventoryReaderExceptionpublic InventoryReaderException(Exception exception) Constructor.- Parameters:
- exception- An exception.
 
 
- 
 - 
Method Detail- 
getExceptionpublic Exception getException() - Returns:
- Returns the exception.
 
 - 
getLineNumberpublic int getLineNumber() - Returns:
- Returns the line number associated with the exception. Could be -1 if it was not set.
 
 - 
setLineNumberpublic void setLineNumber(int line) Sets the line number.- Parameters:
- line- An integer value.
 
 
- 
 
-