package
0.11.0-alpha
Repository: https://github.com/meowmix1337/go-core.git
Documentation: pkg.go.dev

# README

derror

This is just an Error wrapper for the Go Error interface. Please don't actually use this as this is for my own learning and testing purposes.

Add the dependency

go get github.com/meowmix1337/go-core

Usage

Basic Error

import "github.com/meowmix1337/go-core/derror"

err := derror.New(context.Background(), derror.InternalServerCode, derror.InternalType, "failed to do something", errors.New("some error"))

Retryable Error

import "github.com/meowmix1337/go-core/derror"

err := derror.NewRetryable(context.Background(), derror.InternalServerCode, derror.InternalType, "failed to do something", errors.New("some error"))

# Functions

New creates a new Derror that is not retryable.
NewRetryable creates a new Derror with the ability to identify as retryable.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Error represents the derror that implements the Go Error interface.

# Type aliases

No description provided by the author
No description provided by the author