com.acsinet_solutions.util.exception
Class VersionMismatchException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.acsinet_solutions.util.exception.SystemException
                  extended by com.acsinet_solutions.util.exception.VersionMismatchException
All Implemented Interfaces:
java.io.Serializable

public class VersionMismatchException
extends SystemException

Exception that represents a mismatch in version data for a bean

Author:
Santiago Arriaga
See Also:
Serialized Form

Constructor Summary
VersionMismatchException(long expected, long found)
          Public consructor
VersionMismatchException(long id, long expected, long found)
          Public consructor
 
Method Summary
 long getId()
          Get the record id
 
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

VersionMismatchException

public VersionMismatchException(long expected,
                                long found)
Public consructor

Parameters:
expected - The expected version number
found - The found version number

VersionMismatchException

public VersionMismatchException(long id,
                                long expected,
                                long found)
Public consructor

Parameters:
id - The id of the registry where the match was not produced.
expected - The expected version number
found - The found version number
Method Detail

getId

public long getId()
Get the record id

Returns:
a long value