Class ClientErrorCondition
- java.lang.Object
-
- org.apache.qpid.protonj2.client.impl.ClientErrorCondition
-
- All Implemented Interfaces:
ErrorCondition
public final class ClientErrorCondition extends java.lang.Object implements ErrorCondition
Client implementation of theErrorConditiontype that wraps a Proton specific AMQPErrorCondition.
-
-
Constructor Summary
Constructors Constructor Description ClientErrorCondition(java.lang.String condition, java.lang.String description, java.util.Map<java.lang.String,java.lang.Object> info)Create a newClientErrorConditioninstance with the given error informationClientErrorCondition(ErrorCondition condition)Create a newClientErrorConditionthat is a copy of the provided instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringcondition()java.lang.Stringdescription()Descriptive text that supplies any supplementary details not indicated by the condition value..java.util.Map<java.lang.String,java.lang.Object>info()
-
-
-
Constructor Detail
-
ClientErrorCondition
public ClientErrorCondition(ErrorCondition condition)
Create a newClientErrorConditionthat is a copy of the provided instance.- Parameters:
condition- TheErrorConditionwhose information should be copied to the new value.
-
ClientErrorCondition
public ClientErrorCondition(java.lang.String condition, java.lang.String description, java.util.Map<java.lang.String,java.lang.Object> info)Create a newClientErrorConditioninstance 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 java.lang.String condition()
- Specified by:
conditionin interfaceErrorCondition- Returns:
- a value that indicates the type of error condition.
-
description
public java.lang.String description()
Description copied from interface:ErrorConditionDescriptive text that supplies any supplementary details not indicated by the condition value..- Specified by:
descriptionin interfaceErrorCondition- Returns:
- supplementary details not indicated by the condition value..
-
info
public java.util.Map<java.lang.String,java.lang.Object> info()
- Specified by:
infoin interfaceErrorCondition- Returns:
- a
Mapcarrying information about the error condition.
-
-