Documentation
¶
Overview ¶
Package errors holds the typed Code system used across Parsec. Every coded error is convertible to a Twirp error and to a CLI exit reason.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Code ¶
type Code string
Code is the typed error code. Values are DOMAIN_CATEGORY strings.
const ( // Channel codes. ChannelInvalid Code = "PARSEC_CHANNEL_INVALID" ChannelNotFound Code = "PARSEC_CHANNEL_NOT_FOUND" ChannelExists Code = "PARSEC_CHANNEL_EXISTS" ChannelClosed Code = "PARSEC_CHANNEL_CLOSED" ChannelTTLExceeds Code = "PARSEC_CHANNEL_TTL_EXCEEDS_MAX" // Auth codes. AuthDenied Code = "PARSEC_AUTH_DENIED" AuthExpired Code = "PARSEC_AUTH_EXPIRED" // Broker codes. BrokerNotReady Code = "PARSEC_BROKER_NOT_READY" BrokerInternal Code = "PARSEC_BROKER_INTERNAL" // Sink codes. SinkConfig Code = "PARSEC_SINK_CONFIG_INVALID" SinkDLQOverflow Code = "PARSEC_SINK_DLQ_OVERFLOW" SinkDLQNotFound Code = "PARSEC_SINK_DLQ_NOT_FOUND" // Rate limit codes. RateLimited Code = "PARSEC_RATE_LIMITED" // Generic. InvalidArgument Code = "PARSEC_INVALID_ARGUMENT" Internal Code = "PARSEC_INTERNAL" )
Click to show internal directories.
Click to hide internal directories.