Configerror

Errors related to mistakes in microservice’s user-defined configurations.

Description

The Configerror is used to manage errors related to mistakes in a microservice’s user-defined configurations.

Constructors

NewConfigError

Creates an error instance and assigns its values.

NewConfigError(context, code, message string) *ApplicationError

  • context: IContext - (optional) a context to trace execution through a call chain.
  • code: string - (optional) unique error code. Default: “UNKNOWN”
  • message: string - (optional) a human-readable description of the error.