public interface ErrorInfo
The ErrorInfo
interface defines a container which carries error information for specific message
implementations in a generic way. Message implementation specific ErrorInfo container implementations can be
retrieved from a given message with the createErrorInfo method and maintained as part of a message with the setter
and getter method.
There's an default implementation of the ErrorInfo container just simply based on a Hashmap with setter and getter
methods for arbitrary error attributes. Each protocol (message format implementation) should extend this abstract
ErrorInfo implementation and offer convenience methods for setting and getting the protocol specific error
information attributes (if the protocol supports explicit error messages).
Modifier and Type | Method and Description |
---|---|
String |
getAttribute(String name)
Returns the requested ErrorInfo attribute.
|
String[] |
getSupportedAttributeNames()
This method can be overwritten by the protocol specific ErrorInfo container implementations to specify, which
attribute names are known by the setAttribute method.
|
void |
setAttribute(String name,
String value)
Sets an ErrorInfo attribute.
|
String[] getSupportedAttributeNames()
void setAttribute(String name, String value) throws InvalidParamException
name
- The name of the attribute.value
- The value of the attribute.InvalidParamException
- InvalidParamExceptionAccess Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] SAP_XIAF
|
[sap.com] com.sap.aii.af.ifc.facade
|
api
|
BC-XI
|
Copyright 2019 SAP AG Complete Copyright Notice