nl.toolforge.karma.core.manifest
Class ManifestException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bynl.toolforge.karma.core.manifest.ManifestException
All Implemented Interfaces:
java.io.Serializable

public class ManifestException
extends java.lang.Exception

Exception thrown by the AbstractManifest Domain.

Version:
$Id: ManifestException.java,v 1.21 2004/11/02 23:57:06 asmedes Exp $
Author:
D.A. Smedes
See Also:
Serialized Form

Field Summary
static ErrorCode DEPENDENCY_FILE_LOAD_ERROR
          When the dependencies.xml file could not be loaded correctly.
static ErrorCode DEPENDENCY_FILE_NOT_FOUND
          When a modules' project.xml cannot be found.
static ErrorCode DUPLICATE_MANIFEST_FILE
           
static ErrorCode DUPLICATE_MODULE
          When a duplicate module-name is encountered in a manifest.
static java.lang.String EXCEPTION_PREFIX
           
static ErrorCode INVALID_LOCAL_PATH
          When the local path to the manifest on disk is invalid.
static ErrorCode MANIFEST_FILE_NOT_FOUND
          When the manifest file cannot be found on the users' local harddisk.
static ErrorCode MANIFEST_LOAD_ERROR
          When the manifest could not be loaded from disk.
static ErrorCode MANIFEST_NAME_RECURSION
          When a manifest is included with the same name as an already loaded manifest.
static ErrorCode MODULE_NOT_FOUND
          When a module does not exist in the manifest.
static ErrorCode MODULE_NOT_LOCAL
          When a module has not yet been checked out for this manifest
static ErrorCode MODULE_WITHOUT_VERSION
          When the manifest is a ReleaseManifest all modules should have a version attribute.
static ErrorCode NO_ACTIVE_MANIFEST
          If there is no active manifest (none loaded).
static ErrorCode STATE_UPDATE_FAILURE
          When the state update for a module failed.
 
Fields inherited from class java.lang.Exception
 
Constructor Summary
ManifestException(ErrorCode errorCode)
           
ManifestException(ErrorCode errorCode, java.lang.Object[] messageArguments)
           
ManifestException(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 final java.lang.String EXCEPTION_PREFIX
See Also:
Constant Field Values

MANIFEST_NAME_RECURSION

public static final ErrorCode MANIFEST_NAME_RECURSION
When a manifest is included with the same name as an already loaded manifest.


DUPLICATE_MODULE

public static final ErrorCode DUPLICATE_MODULE
When a duplicate module-name is encountered in a manifest.


MANIFEST_FILE_NOT_FOUND

public static final ErrorCode MANIFEST_FILE_NOT_FOUND
When the manifest file cannot be found on the users' local harddisk.


MODULE_NOT_FOUND

public static final ErrorCode MODULE_NOT_FOUND
When a module does not exist in the manifest.


MANIFEST_LOAD_ERROR

public static final ErrorCode MANIFEST_LOAD_ERROR
When the manifest could not be loaded from disk.


NO_ACTIVE_MANIFEST

public static final ErrorCode NO_ACTIVE_MANIFEST
If there is no active manifest (none loaded).


INVALID_LOCAL_PATH

public static final ErrorCode INVALID_LOCAL_PATH
When the local path to the manifest on disk is invalid.


STATE_UPDATE_FAILURE

public static final ErrorCode STATE_UPDATE_FAILURE
When the state update for a module failed.


DEPENDENCY_FILE_NOT_FOUND

public static final ErrorCode DEPENDENCY_FILE_NOT_FOUND
When a modules' project.xml cannot be found.


MODULE_NOT_LOCAL

public static final ErrorCode MODULE_NOT_LOCAL
When a module has not yet been checked out for this manifest


DEPENDENCY_FILE_LOAD_ERROR

public static final ErrorCode DEPENDENCY_FILE_LOAD_ERROR
When the dependencies.xml file could not be loaded correctly.


MODULE_WITHOUT_VERSION

public static final ErrorCode MODULE_WITHOUT_VERSION
When the manifest is a ReleaseManifest all modules should have a version attribute.


DUPLICATE_MANIFEST_FILE

public static final ErrorCode DUPLICATE_MANIFEST_FILE
Constructor Detail

ManifestException

public ManifestException(ErrorCode errorCode)

ManifestException

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

ManifestException

public ManifestException(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.