org.jomc.sequences
Class SequenceLimitException

Package class diagram package SequenceLimitException
java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.jomc.sequences.SequencesException
                  extended by org.jomc.sequences.SequenceLimitException
All Implemented Interfaces:
Serializable

@Generated(value="org.jomc.tools.SourceFileProcessor 1.0",
           comments="See http://jomc.sourceforge.net/jomc/1.0/jomc-tools")
public class SequenceLimitException
extends SequencesException

Gets thrown whenever the next value of a sequence is requested although its maximum value has already been reached.

Dependencies

Messages

Version:
$Id: SequenceLimitException.java 2244 2010-06-29 07:58:09Z schulte2005 $
Author:
Christian Schulte 1.0
See Also:
Serialized Form

Constructor Summary
Constructor and Description
SequenceLimitException(long currentValue)
          Creates a new SequenceLimitException taking the current value of the sequence.
 
Method Summary
Modifier and Type Method and Description
 long getCurrentValue()
          Gets the current value of the sequence reaching its limit.
 String getMessage()
          Gets the message of the exception.
 
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

SequenceLimitException

public SequenceLimitException(long currentValue)
Creates a new SequenceLimitException taking the current value of the sequence.

Parameters:
currentValue - The current value of the sequence reaching its limit.
Method Detail

getCurrentValue

public long getCurrentValue()
Gets the current value of the sequence reaching its limit.

Returns:
The current value of the sequence reaching its limit.

getMessage

public String getMessage()
Gets the message of the exception.

Overrides:
getMessage in class Throwable
Returns:
The message of the exception.


Copyright © 2005-2010 The JOMC Project. All Rights Reserved.