go-exception

module
v1.0.1002 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: Apache-2.0

README

异常处理

下载安装

go get -u github.com/deatil/go-exception

使用

package main

import "github.com/deatil/go-exception/exception"

exception.
    Try(func() {
        panic("exception error")
    }).
    Catch(func(e exception.Exception) {
        fmt.Println(e.GetMessage())
    })

开源协议

  • 本软件包遵循 Apache2 开源协议发布,在保留本软件包版权的情况下提供个人及商业免费使用。

版权

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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