|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
nl.toolforge.karma.core.location.LocationException
Exceptions relating to Location
s. As with all other KarmaExceptions
, exceptions can
only be thrown with a certain ErrorCode
.
Field Summary | |
static ErrorCode |
CONNECTION_EXCEPTION
A connection to the location could not be made. |
static ErrorCode |
DUPLICATE_LOCATION_KEY
|
static java.lang.String |
EXCEPTION_PREFIX
This is the prefix that is shown when displaying the error. |
static ErrorCode |
INVALID_ELEMENT_VALUE
|
static ErrorCode |
INVALID_LOCATION_STORE_LOCATION
The location-store is configured based on properties in karma.properties . |
static ErrorCode |
INVALID_LOCATION_TYPE
The location was configured incorrectly. |
static ErrorCode |
INVALID_MANIFEST_STORE_LOCATION
The manifest-store is configured based on properties in karma.properties . |
static ErrorCode |
LOCATION_LOAD_ERROR
An xml file with locations could not be loaded. |
static ErrorCode |
LOCATION_MISMATCH
A LOCATION_MISMATCH occurs when a module is locally available and an update is requested from
another location. |
static ErrorCode |
LOCATION_NOT_FOUND
Location descriptor does not exist. |
static ErrorCode |
MISSING_LOCATION_PROPERTY
Missing location property |
static ErrorCode |
NO_LOCATION_DATA_FOUND
No location files were found. |
Fields inherited from class java.lang.Exception |
|
Constructor Summary | |
LocationException(ErrorCode errorCode)
|
|
LocationException(ErrorCode errorCode,
java.lang.Object[] messageArguments)
|
|
LocationException(java.lang.Throwable t,
ErrorCode errorCode)
|
|
LocationException(java.lang.Throwable t,
ErrorCode errorCode,
java.lang.Object[] messageArguments)
|
Method Summary | |
ErrorCode |
getErrorCode()
Gets the exceptions' ErrorCode . |
java.lang.String |
getMessage()
Helper method to get the localized error message based on the ErrorCode . |
java.lang.Object[] |
getMessageArguments()
Retrieves the message arguments for this exception. |
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 |
public static final java.lang.String EXCEPTION_PREFIX
public static final ErrorCode LOCATION_NOT_FOUND
LocationFactory
, which contains references to all Location
objects mapped in
locations.xml
.
public static final ErrorCode NO_LOCATION_DATA_FOUND
*.xml
-files from
nl.toolforge.karma.core.boot.WorkingContext#getLocationStore()
.
public static final ErrorCode MISSING_LOCATION_PROPERTY
public static final ErrorCode INVALID_MANIFEST_STORE_LOCATION
karma.properties
. This error code is
created when the Location
for the manifest-store could not be created succesfully.
public static final ErrorCode INVALID_LOCATION_STORE_LOCATION
karma.properties
. This error code is
created when the Location
for the location-store could not be created succesfully.
public static final ErrorCode DUPLICATE_LOCATION_KEY
public static final ErrorCode LOCATION_LOAD_ERROR
public static final ErrorCode LOCATION_MISMATCH
LOCATION_MISMATCH
occurs when a module is locally available and an update is requested from
another location. A version control system generally gives an error for this.
public static final ErrorCode CONNECTION_EXCEPTION
public static final ErrorCode INVALID_LOCATION_TYPE
public static final ErrorCode INVALID_ELEMENT_VALUE
Constructor Detail |
public LocationException(ErrorCode errorCode)
public LocationException(java.lang.Throwable t, ErrorCode errorCode)
public LocationException(ErrorCode errorCode, java.lang.Object[] messageArguments)
public LocationException(java.lang.Throwable t, ErrorCode errorCode, java.lang.Object[] messageArguments)
Method Detail |
public java.lang.String getMessage()
ErrorCode
.
public final ErrorCode getErrorCode()
ErrorCode
.
public final java.lang.Object[] getMessageArguments()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |