nl.toolforge.karma.core.vc
Class VersionControlException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bynl.toolforge.karma.core.vc.VersionControlException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CVSException, SVNException

public abstract class VersionControlException
extends java.lang.Exception

Root exception for stuff relating to version control system functionality.

Version:
$Id: VersionControlException.java,v 1.19 2004/11/02 22:26:44 asmedes Exp $
Author:
D.A. Smedes
See Also:
Serialized Form

Field Summary
static ErrorCode DUPLICATE_VERSION
          Version already exists for this module.
static java.lang.String EXCEPTION_PREFIX
           
static ErrorCode MISSING_LOCATION
          A Location instance was required, but missing.
static ErrorCode MODULE_NOT_IN_REPOSITORY
          The requested module does not exist in the repository
 
Fields inherited from class java.lang.Exception
 
Constructor Summary
VersionControlException(ErrorCode errorCode)
           
VersionControlException(ErrorCode errorCode, java.lang.Object[] messageArguments)
           
VersionControlException(java.lang.Throwable t, ErrorCode errorCode)
           
VersionControlException(java.lang.Throwable t, ErrorCode errorCode, java.lang.Object[] messageArguments)
           
 
Method Summary
 ErrorCode getErrorCode()
          Gets the exceptions' ErrorCode.
 java.lang.String getMessage()
           
 java.lang.Object[] getMessageArguments()
           
 
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
 

Field Detail

EXCEPTION_PREFIX

public static java.lang.String EXCEPTION_PREFIX

DUPLICATE_VERSION

public static final ErrorCode DUPLICATE_VERSION
Version already exists for this module.


MODULE_NOT_IN_REPOSITORY

public static final ErrorCode MODULE_NOT_IN_REPOSITORY
The requested module does not exist in the repository


MISSING_LOCATION

public static final ErrorCode MISSING_LOCATION
A Location instance was required, but missing.

Constructor Detail

VersionControlException

public VersionControlException(ErrorCode errorCode)

VersionControlException

public VersionControlException(java.lang.Throwable t,
                               ErrorCode errorCode)

VersionControlException

public VersionControlException(ErrorCode errorCode,
                               java.lang.Object[] messageArguments)

VersionControlException

public VersionControlException(java.lang.Throwable t,
                               ErrorCode errorCode,
                               java.lang.Object[] messageArguments)
Method Detail

getMessage

public java.lang.String getMessage()

getErrorCode

public final ErrorCode getErrorCode()
Gets the exceptions' ErrorCode.

Returns:

getMessageArguments

public final java.lang.Object[] getMessageArguments()


Copyright © 2002-2004 Toolforge. All Rights Reserved.