Class TLcdOWSException
- All Implemented Interfaces:
ILcdDataObject
,ILcdCloneable
,ILcdDeepCloneable
,Cloneable
-
Field Summary
Modifier and TypeFieldDescriptionstatic final TLcdDataProperty
Data property that maps to theexceptionCode
attribute.static final TLcdDataProperty
Data property that maps to theExceptionText
element.static final TLcdDataProperty
Data property that maps to thelocator
attribute. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addExceptionText
(String aExceptionText) Adds a exception text.Returns the value of the property that maps to theexceptionCode
attribute.Returns the value of the property that maps to theExceptionText
element.getExceptionText
(int aIndex) Gets the exception text at a given position.int
Gets the number of exception texts.Returns the value of the property that maps to thelocator
attribute.void
removeExceptionText
(int aIndex) Removes the exception text at a given position.void
setExceptionCode
(String aValue) Sets the value of the property that maps to theexceptionCode
attribute.void
setLocator
(String aValue) Sets the value of the property that maps to thelocator
attribute.toString()
Returns a string representation of the object.Methods inherited from class com.luciad.datamodel.TLcdDataObject
clone, clone, getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue
-
Field Details
-
EXCEPTION_CODE_PROPERTY
Data property that maps to theexceptionCode
attribute. The possible values for this property are instances ofString
. -
LOCATOR_PROPERTY
Data property that maps to thelocator
attribute. The possible values for this property are instances ofString
. -
EXCEPTION_TEXT_PROPERTY
Data property that maps to theExceptionText
element. The possible values for this property are instances ofList<String>
.
-
-
Constructor Details
-
TLcdOWSException
public TLcdOWSException()
-
-
Method Details
-
addExceptionText
Adds a exception text.Ordered sequence of text strings that describe this specific exception or error.
- Parameters:
aExceptionText
- the exception text to be added.
-
getExceptionTextCount
public int getExceptionTextCount()Gets the number of exception texts.- Returns:
- the number of exception texts.
-
removeExceptionText
public void removeExceptionText(int aIndex) Removes the exception text at a given position.- Parameters:
aIndex
- the index of the given position.
-
getExceptionText
Gets the exception text at a given position.Ordered sequence of text strings that describe this specific exception or error.
- Parameters:
aIndex
- the index of the given position.- Returns:
- the exception text at the given position.
-
toString
Returns a string representation of the object. In general, thetoString
method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.- Overrides:
toString
in classTLcdDataObject
- Returns:
- a string representation of the object.
-
getExceptionCode
Returns the value of the property that maps to theexceptionCode
attribute.A code representing the type of this exception, which shall be selected from a set of exceptionCode values specified for the specific service operation and server.
- Returns:
- the value of the
EXCEPTION_CODE_PROPERTY
property.
-
setExceptionCode
Sets the value of the property that maps to theexceptionCode
attribute.A code representing the type of this exception, which shall be selected from a set of exceptionCode values specified for the specific service operation and server.
- Parameters:
aValue
- the value to set for theEXCEPTION_CODE_PROPERTY
property.
-
getLocator
Returns the value of the property that maps to thelocator
attribute.When included, this locator shall indicate to the client where an exception was encountered in servicing the client's operation request. This locator should be included whenever meaningful information can be provided by the server. The contents of this locator will depend on the specific exceptionCode and OWS service, and shall be specified in the OWS Implementation Specification.
- Returns:
- the value of the
LOCATOR_PROPERTY
property.
-
setLocator
Sets the value of the property that maps to thelocator
attribute.When included, this locator shall indicate to the client where an exception was encountered in servicing the client's operation request. This locator should be included whenever meaningful information can be provided by the server. The contents of this locator will depend on the specific exceptionCode and OWS service, and shall be specified in the OWS Implementation Specification.
- Parameters:
aValue
- the value to set for theLOCATOR_PROPERTY
property.
-
getExceptionText
Returns the value of the property that maps to theExceptionText
element.Ordered sequence of text strings that describe this specific exception or error. The contents of these strings are left open to definition by each server implementation. A server is strongly encouraged to include at least one ExceptionText value, to provide more information about the detected error than provided by the exceptionCode. When included, multiple ExceptionText values shall provide hierarchical information about one detected error, with the most significant information listed first.
- Returns:
- the value of the
EXCEPTION_TEXT_PROPERTY
property.
-