public class DefaultResultVerificationError extends Object implements ComponentVerifier.VerificationError
ComponentVerifier.VerificationError.Attribute, ComponentVerifier.VerificationError.Code, ComponentVerifier.VerificationError.ExceptionAttribute, ComponentVerifier.VerificationError.GroupAttribute, ComponentVerifier.VerificationError.HttpAttribute, ComponentVerifier.VerificationError.StandardCode| Constructor and Description |
|---|
DefaultResultVerificationError(ComponentVerifier.VerificationError.Code code,
String description,
Set<String> parameterKeys,
Map<ComponentVerifier.VerificationError.Attribute,Object> details) |
| Modifier and Type | Method and Description |
|---|---|
ComponentVerifier.VerificationError.Code |
getCode()
The overall error code, which can be either a
ComponentVerifier.VerificationError.StandardCode or a custom code. |
String |
getDescription()
A human readable description of the error in plain english
|
Map<ComponentVerifier.VerificationError.Attribute,Object> |
getDetails()
Details about the failed verification.
|
Set<String> |
getParameterKeys()
A set of input parameter names which fails the verification.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasAttribute, asCode, getDetail, getDetailpublic DefaultResultVerificationError(ComponentVerifier.VerificationError.Code code, String description, Set<String> parameterKeys, Map<ComponentVerifier.VerificationError.Attribute,Object> details)
public ComponentVerifier.VerificationError.Code getCode()
ComponentVerifier.VerificationErrorComponentVerifier.VerificationError.StandardCode or a custom code. It is
recommended to stick to the predefined standard codesgetCode in interface ComponentVerifier.VerificationErrorpublic String getDescription()
ComponentVerifier.VerificationErrorgetDescription in interface ComponentVerifier.VerificationErrorpublic Set<String> getParameterKeys()
ComponentVerifier.VerificationErrorComponentVerifier.verify(Scope, Map).getParameterKeys in interface ComponentVerifier.VerificationErrorpublic Map<ComponentVerifier.VerificationError.Attribute,Object> getDetails()
ComponentVerifier.VerificationErrorComponentVerifier.VerificationError.ExceptionAttribute, ComponentVerifier.VerificationError.HttpAttribute, ComponentVerifier.VerificationError.GroupAttribute) or it can be free-form
custom keys specific to a component. The standard attributes are defined as enums in all uppercase (with
underscore as separator), custom attributes are supposed to be in all lower case (also with underscores
as separators)getDetails in interface ComponentVerifier.VerificationErrorApache Camel