package
0.3.1
Repository: https://github.com/caicloud/nirvana.git
Documentation: pkg.go.dev

# Functions

NewFactory creates a factory to create errors.
ParseError parse error from raw data.

# Constants

DataTypeJSON corresponds to content type "application/json".
DataTypePlain indicates there is a plain error message.
DataTypeXML corresponds to content type "application/xml".

# Variables

RFC 7231, 6.6.3.
RFC 7231, 6.5.1.
RFC 7231, 6.5.8.
RFC 7231, 6.5.14.
RFC 4918, 11.4.
RFC 7231, 6.5.3.
RFC 7231, 6.6.5.
RFC 7231, 6.5.9.
RFC 7231, 6.6.6.
RFC 4918, 11.5.
RFC 7231, 6.6.1.
RFC 7231, 6.5.10.
RFC 4918, 11.3.
RFC 5842, 7.2.
RFC 7231, 6.5.5.
RFC 6585, 6.
RFC 7231, 6.5.6.
RFC 2774, 7.
RFC 7231, 6.5.4.
RFC 7231, 6.6.2.
RFC 7231, 6.5.2.
RFC 7232, 4.2.
RFC 6585, 3.
RFC 7235, 3.2.
RFC 7233, 4.4.
RFC 7231, 6.5.11.
RFC 6585, 5.
RFC 7231, 6.5.7.
RFC 7231, 6.5.12.
RFC 7231, 6.6.4.
RFC 7168, 2.3.3.
RFC 6585, 4.
RFC 7235, 3.1.
RFC 7725, 3.
RFC 4918, 11.2.
RFC 7231, 6.5.13.
RFC 7231, 6.5.15.
RFC 2295, 8.1.

# Interfaces

Builder can build error factories and errros.
ExternalError describes an error interface for client error.
Factory can create error from a fixed format.

# Type aliases

DataType is the type of raw data.
Reason is an enumeration of possible failure causes.