jetbrains.buildServer.vcs
Class VcsException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by jetbrains.buildServer.vcs.VcsException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
IncrementalPatchImpossibleException, VcsFileNotFoundException, VcsIncludeRulesException, VcsRootVcsException

public class VcsException
extends java.lang.Exception

Exception is thrown when some problem occurred while processing vcs request.

See Also:
Serialized Form

Constructor Summary
VcsException()
          Default constructor.
VcsException(java.lang.String message)
          Constructor with a description.
VcsException(java.lang.String message, java.lang.Throwable cause)
          Constructor with a description and cause exception.
VcsException(java.lang.Throwable cause)
          Constructor with cause exception.
 
Method Summary
 boolean isRecoverable()
          Indicates whether this error is recoverable (if true then operation can be repeated)
 void setRecoverable(boolean recoverable)
          Sets whether this error is recoverable or not (false by default).
 VcsException setRoot(java.lang.Object root)
          Deprecated. core will take care to associate vcs exception and settings
 
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

VcsException

public VcsException()
Default constructor.


VcsException

public VcsException(java.lang.String message)
Constructor with a description.

Parameters:
message - problem description.

VcsException

public VcsException(java.lang.String message,
                    java.lang.Throwable cause)
Constructor with a description and cause exception.

Parameters:
message - problem description.
cause - cause exception.

VcsException

public VcsException(java.lang.Throwable cause)
Constructor with cause exception.

Parameters:
cause - cause exception.
Method Detail

isRecoverable

public boolean isRecoverable()
Indicates whether this error is recoverable (if true then operation can be repeated)

Returns:
true if error is recoverable

setRecoverable

public void setRecoverable(boolean recoverable)
Sets whether this error is recoverable or not (false by default).

Parameters:
recoverable - true if error is recoverable

setRoot

@NotNull
@Deprecated
public VcsException setRoot(@NotNull
                                               java.lang.Object root)
Deprecated. core will take care to associate vcs exception and settings

This method is left here only for compatibility with older versions

Parameters:
root - deprecated
Since:
2.0