package
0.1.5
Repository: https://github.com/puppetlabs/leg.git
Documentation: pkg.go.dev

# Functions

IsAlertsSentryInitializationError tests whether a given error is an instance of "sentry_initialization_error".
IsMetricsNotFoundError tests whether a given error is an instance of "not_found_error".
IsMetricsUnknownError tests whether a given error is an instance of "unknown_error".
NewAlertsSentryInitializationError creates a new error with the code "sentry_initialization_error".
NewAlertsSentryInitializationErrorBuilder creates a new error builder for the code "sentry_initialization_error".
NewMetricsNotFoundError creates a new error with the code "not_found_error".
NewMetricsNotFoundErrorBuilder creates a new error builder for the code "not_found_error".
NewMetricsUnknownError creates a new error with the code "unknown_error".
NewMetricsUnknownErrorBuilder creates a new error builder for the code "unknown_error".

# Constants

AlertsSentryInitializationErrorCode is the code for an instance of "sentry_initialization_error".
MetricsNotFoundErrorCode is the code for an instance of "not_found_error".
MetricsUnknownErrorCode is the code for an instance of "unknown_error".

# Variables

AlertsSection defines a section of errors with the following scope: Alerting errors.
API is a singleton instance of the External type.
Domain is the general domain in which all errors in this package belong.
MetricsSection defines a section of errors with the following scope: Metrics errors.

# Structs

AlertsSentryInitializationErrorBuilder is a builder for "sentry_initialization_error" errors.
External contains methods that can be used externally to help consume errors from this package.
MetricsNotFoundErrorBuilder is a builder for "not_found_error" errors.
MetricsUnknownErrorBuilder is a builder for "unknown_error" errors.

# Interfaces

Error is the type of all errors generated by this package.