Skip to main content
Version: 2.8.x(Latest)

Introduction

The GoFrame framework offers powerful, rich, and unified error handling capabilities implemented through the gerror component. This component is also the unified error handling component of the framework. All components of the framework, if there is an error returned, are accompanied by stack information to facilitate developers in quickly identifying issues.

Usage:

import "github.com/gogf/gf/v2/errors/gerror"

API Documentation:

https://pkg.go.dev/github.com/gogf/gf/v2/errors/gerror

Documents

📄️ Error Handling - Performance

Covers benchmark performance testing for error handling using the GoFrame framework, providing performance comparison results of commonly used methods. These performance tests allow developers to better understand and optimize error handling efficiency in Go programming, thereby enhancing the overall performance of applications. Data is sourced from the open-source GoFrame project on GitHub, listing detailed performance results of different error handling methods under various configurations for developers' reference.