Package com.luciad.ogc.csw.server
Class TLcdCSWServiceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.luciad.ogc.common.TLcdOGCServiceException
com.luciad.ogc.csw.server.TLcdCSWServiceException
- All Implemented Interfaces:
Serializable
Extension of TLcdOGCServiceException, containing specific error messages and codes for CSW service exceptions.
- Since:
- 2017.0
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final String
static final int
static final String
static final int
static final String
static final int
static final String
static final int
static final String
static final int
static final String
static final int
static final String
static final int
static final String
static final int
static final String
static final int
static final String
Fields inherited from class com.luciad.ogc.common.TLcdOGCServiceException
AUTHENTICATION_REQUIRED, AUTHENTICATION_REQUIRED_STR, CONFIG_ERROR, CONFIG_ERROR_STR, CURRENT_UPDATE_SEQUENCE, INVALID_REQUEST, INVALID_REQUEST_STR, INVALID_UPDATE_SEQUENCE, NOT_AUTHORIZED, NOT_AUTHORIZED_STR, REQUEST_XML_ERROR, REQUEST_XML_ERROR_STR, UNKNOWN_REQUEST, UNKNOWN_REQUEST_STR
-
Constructor Summary
ConstructorDescriptionTLcdCSWServiceException
(String aMessage, int aCode) Constructor with an error message and code.TLcdCSWServiceException
(String aMessage, int aCode, String aLocator) Constructor with an error message, code and locator.TLcdCSWServiceException
(String aMessage, int aCode, String aLocator, String aServiceVersion) Constructor with an error message, code, locator and service information. -
Method Summary
Modifier and TypeMethodDescriptiongetCodeAsAString
(int i) Returns a string describing the given error code.Methods inherited from class com.luciad.ogc.common.TLcdOGCServiceException
addException, addException, getCode, getExceptions, getLocator, getMessage, getMimeType, getServiceName, getServiceVersion
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
INVALID_PARAMETER_VALUE
public static final int INVALID_PARAMETER_VALUE- See Also:
-
MISSING_PARAMETER_VALUE
public static final int MISSING_PARAMETER_VALUE- See Also:
-
NONEXISTENT_COLLECTION_TYPE
public static final int NONEXISTENT_COLLECTION_TYPE- See Also:
-
UNRECOGNIZED_COLLECTION_IDENTIFIER
public static final int UNRECOGNIZED_COLLECTION_IDENTIFIER- See Also:
-
INVALID_PARAMETER_NAME
public static final int INVALID_PARAMETER_NAME- See Also:
-
TRANSACTION_FAILED
public static final int TRANSACTION_FAILED- See Also:
-
RESOURCE_NOT_FOUND
public static final int RESOURCE_NOT_FOUND- See Also:
-
INVALID_USER_ID
public static final int INVALID_USER_ID- See Also:
-
VERSION_NEGOTIATION_FAILED
public static final int VERSION_NEGOTIATION_FAILED- See Also:
-
NO_APPLICABLE_CODE
public static final int NO_APPLICABLE_CODE- See Also:
-
INVALID_PARAMETER_VALUE_STR
- See Also:
-
MISSING_PARAMETER_VALUE_STR
- See Also:
-
NONEXISTENT_COLLECTION_TYPE_STR
- See Also:
-
UNRECOGNIZED_COLLECTION_IDENTIFIER_STR
- See Also:
-
INVALID_PARAMETER_NAME_STR
- See Also:
-
TRANSACTION_FAILED_STR
- See Also:
-
RESOURCE_NOT_FOUND_STR
- See Also:
-
INVALID_USER_ID_STR
- See Also:
-
VERSION_NEGOTIATION_FAILED_STR
- See Also:
-
NO_APPLICABLE_CODE_STR
- See Also:
-
-
Constructor Details
-
TLcdCSWServiceException
Constructor with an error message and code. The given exception information is converted to aTLcdOWSException
and added to the list of exceptions. This list can be retrieved throughTLcdOGCServiceException.getExceptions()
.- Parameters:
aMessage
- the error messageaCode
- the exception's error code.
-
TLcdCSWServiceException
Constructor with an error message, code and locator. The given exception information is converted to aTLcdOWSException
and added to the list of exceptions. This list can be retrieved throughTLcdOGCServiceException.getExceptions()
.- Parameters:
aMessage
- the error messageaCode
- the exception's error code.aLocator
- the location of the error in the client request
-
TLcdCSWServiceException
Constructor with an error message, code, locator and service information. The given exception information is converted to aTLcdOWSException
and added to the list of exceptions. This list can be retrieved throughTLcdOGCServiceException.getExceptions()
.- Parameters:
aMessage
- the error messageaCode
- the exception's error code.aLocator
- the location of the error in the client requestaServiceVersion
- the version of the service that generated the exception.
-
-
Method Details
-
getCodeAsAString
Description copied from class:TLcdOGCServiceException
Returns a string describing the given error code.- Overrides:
getCodeAsAString
in classTLcdOGCServiceException
- Parameters:
i
- the exception's error code- Returns:
- a string describing the given error code.
-