gov.nasa.pds.harvest.inventory
Class InventoryReaderException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by gov.nasa.pds.harvest.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 Summary
InventoryReaderException(Exception exception)
          Constructor.
 
Method Summary
 Exception getException()
           
 int getLineNumber()
           
 void setLineNumber(int line)
          Sets the line number.
 
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

InventoryReaderException

public InventoryReaderException(Exception exception)
Constructor.

Parameters:
exception - An exception.
Method Detail

getException

public Exception getException()
Returns:
Returns the exception.

getLineNumber

public int getLineNumber()
Returns:
Returns the line number associated with the exception. Could be -1 if it was not set.

setLineNumber

public void setLineNumber(int line)
Sets the line number.

Parameters:
line - An integer value.


Copyright © 2010–2014 Planetary Data System. All rights reserved.