Package org.apache.qpid.protonj2.client
Interface ErrorCondition
- All Known Implementing Classes:
ClientErrorCondition
public interface ErrorCondition
Conveys the error value used to inform the user of why an endpoint
was closed or a delivery rejected.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorCondition
Create an error condition object using the supplied values.static ErrorCondition
Create an error condition object using the supplied values.Descriptive text that supplies any supplementary details not indicated by the condition value..info()
-
Method Details
-
condition
String condition()- Returns:
- a value that indicates the type of error condition.
-
description
String description()Descriptive text that supplies any supplementary details not indicated by the condition value..- Returns:
- supplementary details not indicated by the condition value..
-
info
- Returns:
- a
Map
carrying information about the error condition.
-
create
Create an error condition object using the supplied values. The condition string cannot be null however the other attribute can.- Parameters:
condition
- The value that defines the error condition.description
- The supplementary description for the given error condition.- Returns:
- a new read-only
ErrorCondition
object
-
create
Create an error condition object using the supplied values. The condition string cannot be null however the other attribute can.- Parameters:
condition
- The value that defines the error condition.description
- The supplementary description for the given error condition.info
- AMap
containing additional error information.- Returns:
- a new read-only
ErrorCondition
object
-