Fuego Process API

fuego.papi.exception
Class CannotLockInstanceException


java.lang.Object

  extended byjava.lang.Throwable

      extended byjava.lang.Exception

          extended byfuego.lang.DefaultException

              extended byfuego.papi.OperationException

                  extended byfuego.papi.ProcessOperationException

                      extended byfuego.papi.exception.InstanceOperationException

                          extended byfuego.papi.exception.CannotLockInstanceException

All Implemented Interfaces:
Serializable

public class CannotLockInstanceException
extends InstanceOperationException

A CannotLockInstanceException is thrown as a result of an attempt to lock an instance.

See Also:
Serialized Form

Constructor Summary
CannotLockInstanceException(String instanceId)
          Creates a new CannotLockInstanceException with the given instanceId.
CannotLockInstanceException(String instanceId, String instanceOwner, boolean isSameParticipant)
          Creates a new CannotLockInstanceException with the given instance and instanceOuner.
 
Method Summary
 String getInstanceOwner()
          Return the instance owner
 boolean isSameParticipant()
          Return true if the instance is locked by the same participant
 
Methods inherited from class fuego.papi.exception.InstanceOperationException
getInstanceId
 
Methods inherited from class fuego.papi.ProcessOperationException
getProcessId
 
Methods inherited from class fuego.papi.OperationException
wrap
 
Methods inherited from class fuego.lang.DefaultException
getCode, getDetail, getKey, getMessage, getMessage, getStackTrace, getStackTraceString, getTechnicalDetail, getUserMessage, hasDetail, hasTechnicalDetail
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CannotLockInstanceException


public CannotLockInstanceException(String instanceId)
Creates a new CannotLockInstanceException with the given instanceId.

Parameters:
instanceId - Instance identification.

CannotLockInstanceException


public CannotLockInstanceException(String instanceId,
                                   String instanceOwner,
                                   boolean isSameParticipant)
Creates a new CannotLockInstanceException with the given instance and instanceOuner.

Parameters:
instanceId - Instance name.
instanceOwner - Instance owner.
Method Detail

getInstanceOwner


public String getInstanceOwner()
Return the instance owner

Returns:
Participant Identification

isSameParticipant


public boolean isSameParticipant()
Return true if the instance is locked by the same participant

Returns:
isSameParticipant

Fuego Process API

© Copyright 1996/2003 Fuego Inc. All Rights Reserved