errors/

directory
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2025 License: MIT

README

Error Handling Examples

Overview

This directory contains examples demonstrating how to use the error handling components of the ServiceLib library. Each example is a complete, runnable application that showcases specific features and usage patterns.

Examples

Running the Examples

Each example can be run from its directory using:

go run main.go

License

This project is licensed under the MIT License - see the LICENSE file for details.

Directories

Path Synopsis
This example demonstrates how to create different types of errors using the errors package.
This example demonstrates how to create different types of errors using the errors package.
This example demonstrates how to categorize and handle different types of errors.
This example demonstrates how to categorize and handle different types of errors.
This example demonstrates how to add and retrieve context information from errors.
This example demonstrates how to add and retrieve context information from errors.
This example demonstrates how to wrap errors to add context as they propagate up the call stack.
This example demonstrates how to wrap errors to add context as they propagate up the call stack.
This example demonstrates how to include and retrieve caller information from errors.
This example demonstrates how to include and retrieve caller information from errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL