wt.vc
Class VersionControlException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bywt.util.WTException
              extended bywt.vc.VersionControlException
All Implemented Interfaces:
ConflictHolder, LocalizableMessage, Message, Serializable
Direct Known Subclasses:
VCBranchPointException

public class VersionControlException
extends WTException
implements ConflictHolder, Serializable

Provides an abstraction of an abnormal occurrence or error in the usage or processing of the iterating service. Exceptions can be localized through a given resource bundle, and other exceptions can be nested within an VersionControlException.

Supported API: true

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private  ConflictElement[] conflictElements
           
private static String RESOURCE
           
 
Fields inherited from class wt.util.WTException
GETMESSAGE_LINE_SEPARATOR, LINE_SEPARATOR, SPACE_SEPARATOR, TOSTRING_LINE_SEPARATOR
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Fields inherited from interface wt.conflict.ConflictHolder
CONFLICT_ELEMENTS
 
Constructor Summary
VersionControlException()
          Constructs a new exception.
VersionControlException(ConflictElement[] cElem)
          Constructs a new exception that would accept array of ConflictElement's.
VersionControlException(Exception e)
          Constructs a new exception with a nested exception.
VersionControlException(Exception e, String s)
          Constructs a new exception a nested exception and a string.
VersionControlException(Exception e, String rb, String key, Object[] params)
          Constructs a new exception with a nested exception from a resource bundle, its key, and an array of objects for insertion into the keyed resource bundle's message.
VersionControlException(String s)
          Constructs a new exception with a string.
VersionControlException(String rb, String key, Object[] params)
          Constructs a new exception from a resource bundle, its key, and an array of objects for insertion into the keyed resource bundle's message.
VersionControlException(String rb, String key, Object[] params, Object[] additionalMessages)
          Constructs a new exception from a resource bundle, its key, an array of objects for insertion into the keyed resource bundle's message and an array of additional messages.
 
Method Summary
 Object[] getAllConflictingObjects()
          This will return all the objects associated with this exception according to ConflictElement.
 ConflictElement[] getConflictElements()
          Gets the value of the attribute: conflictElements; Array of ConflictElement's.
 void setConflictElements(ConflictElement[] a_ConflictElements)
          Sets the value of the attribute: conflictElements; Array of ConflictElement's.
 
Methods inherited from class wt.util.WTException
getAdditionalMessageArray, getAdditionalMessages, getAdditionalMessages, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getNestedExceptionString, getNestedExceptionString, getNestedThrowable, getStandardMessage, getStandardMessage, printStackTrace, printStackTrace, printStackTrace, setLocalizedMessage, toString, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

conflictElements

private ConflictElement[] conflictElements
Constructor Detail

VersionControlException

public VersionControlException()
Constructs a new exception.

Supported API: false


VersionControlException

public VersionControlException(String s)
Constructs a new exception with a string.

Supported API: false

Parameters:
s -

VersionControlException

public VersionControlException(String rb,
                               String key,
                               Object[] params)
Constructs a new exception from a resource bundle, its key, and an array of objects for insertion into the keyed resource bundle's message.

Supported API: false

Parameters:
rb -
key -
params -

VersionControlException

public VersionControlException(Exception e)
Constructs a new exception with a nested exception.

Supported API: false

Parameters:
e -

VersionControlException

public VersionControlException(Exception e,
                               String s)
Constructs a new exception a nested exception and a string.

Supported API: false

Parameters:
e -
s -

VersionControlException

public VersionControlException(Exception e,
                               String rb,
                               String key,
                               Object[] params)
Constructs a new exception with a nested exception from a resource bundle, its key, and an array of objects for insertion into the keyed resource bundle's message.

Supported API: false

Parameters:
e -
rb -
key -
params -

VersionControlException

public VersionControlException(ConflictElement[] cElem)
Constructs a new exception that would accept array of ConflictElement's.

Supported API: false

Parameters:
cElem - An array of ConflictElements.

VersionControlException

public VersionControlException(String rb,
                               String key,
                               Object[] params,
                               Object[] additionalMessages)
Constructs a new exception from a resource bundle, its key, an array of objects for insertion into the keyed resource bundle's message and an array of additional messages.

Supported API: false

Parameters:
rb -
key -
params -
additionalMessages -
Method Detail

getAllConflictingObjects

public Object[] getAllConflictingObjects()
This will return all the objects associated with this exception according to ConflictElement. This would be union of all objects contained in all the conflict elements.

Supported API: false

Specified by:
getAllConflictingObjects in interface ConflictHolder
Returns:
Object[]

getConflictElements

public ConflictElement[] getConflictElements()
Gets the value of the attribute: conflictElements; Array of ConflictElement's.

Supported API: false

Specified by:
getConflictElements in interface ConflictHolder
Returns:
ConflictElement[]

setConflictElements

public void setConflictElements(ConflictElement[] a_ConflictElements)
                         throws WTPropertyVetoException
Sets the value of the attribute: conflictElements; Array of ConflictElement's.

Supported API: false

Specified by:
setConflictElements in interface ConflictHolder
Parameters:
a_ConflictElements -
Throws:
WTPropertyVetoException