FreeHEP API
Version v1.2.2

org.freehep.record.loop
Class LoopException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--org.freehep.record.loop.LoopException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
LoopInterruptedException, LoopSourceExhaustedException, NoLoopRecordException

public class LoopException
extends Exception

This class is thrown by the "loop" method of the SequentialRecordLoop interface if there an exception.

Version:
$Id: LoopException.java,v 1.1 2003/05/06 23:13:16 tonyj Exp $
Author:
patton
See Also:
Serialized Form

Constructor Summary
LoopException(long supplied, long countableSupplied)
          Create an instance of this class without any detailed message.
LoopException(String s, long supplied, long countableSupplied)
          Create an instance of this class with a detailed message.
 
Method Summary
 long getCountableSupplied()
          Returns the number of countable records that were supplied before the exception.
 long getSupplied()
          Returns the number of records that were supplied before the exception.
 
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

LoopException

public LoopException(long supplied,
                     long countableSupplied)
Create an instance of this class without any detailed message.

Parameters:
supplied - the number of records that were supplied before the exception.
countableSupplied - the number of countable records that were supplied before the exception.

LoopException

public LoopException(String s,
                     long supplied,
                     long countableSupplied)
Create an instance of this class with a detailed message.

Parameters:
s - the detailed message.
supplied - the number of records that were supplied before the exception.
countableSupplied - the number of countable records that were supplied before the exception.
Method Detail

getCountableSupplied

public long getCountableSupplied()
Returns the number of countable records that were supplied before the exception.

Returns:
the number of countable records that were supplied before the exception.

getSupplied

public long getSupplied()
Returns the number of records that were supplied before the exception.

Returns:
the number of records that were supplied before the exception.

FreeHEP API
Version v1.2.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.