Constructor and Description |
---|
ErrorCode(String name,
String description,
Set<ErrorMap.ErrorAttribute> attributes,
ErrorMap.RetrySpecification retrySpec)
Creates a new error code, usually called from jackson.
|
Modifier and Type | Method and Description |
---|---|
Set<ErrorMap.ErrorAttribute> |
attributes() |
String |
description() |
String |
name() |
ErrorMap.RetrySpecification |
retrySpec() |
String |
toString() |
public ErrorCode(String name, String description, Set<ErrorMap.ErrorAttribute> attributes, ErrorMap.RetrySpecification retrySpec)
name
- name of the error code.description
- description of the error code.attributes
- the attributes for each error.retrySpec
- the retry specification for the error code.public String name()
public String description()
public Set<ErrorMap.ErrorAttribute> attributes()
public ErrorMap.RetrySpecification retrySpec()
Copyright © 2021 Couchbase, Inc.. All rights reserved.