Class ClientErrorCondition
- java.lang.Object
-
- org.apache.qpid.protonj2.client.impl.ClientErrorCondition
-
- All Implemented Interfaces:
ErrorCondition
public final class ClientErrorCondition extends Object implements ErrorCondition
Client implementation of theErrorCondition
type that wraps a Proton specific AMQPErrorCondition
.
-
-
Constructor Summary
Constructors Constructor Description ClientErrorCondition(String condition, String description, Map<String,Object> info)
Create a newClientErrorCondition
instance with the given error informationClientErrorCondition(ErrorCondition condition)
Create a newClientErrorCondition
that is a copy of the provided instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
condition()
String
description()
Descriptive text that supplies any supplementary details not indicated by the condition value..Map<String,Object>
info()
-
-
-
Constructor Detail
-
ClientErrorCondition
public ClientErrorCondition(ErrorCondition condition)
Create a newClientErrorCondition
that is a copy of the provided instance.- Parameters:
condition
- TheErrorCondition
whose information should be copied to the new value.
-
ClientErrorCondition
public ClientErrorCondition(String condition, String description, Map<String,Object> info)
Create a newClientErrorCondition
instance with the given error information- Parameters:
condition
- The condition value that defines the error type.description
- A meaningful description of the error.info
- Any additional information that must accompany the error.
-
-
Method Detail
-
condition
public String condition()
- Specified by:
condition
in interfaceErrorCondition
- Returns:
- a value that indicates the type of error condition.
-
description
public String description()
Description copied from interface:ErrorCondition
Descriptive text that supplies any supplementary details not indicated by the condition value..- Specified by:
description
in interfaceErrorCondition
- Returns:
- supplementary details not indicated by the condition value..
-
-