All Projects → mozhata → merr

mozhata / merr

Licence: other
wrap golang error to make it easy to debug

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to merr

DiscordBot-Template
A boilerplate / template for discord.js bots with 100% coverage of Discord API, command handler, error handler based on https://discordjs.guide/
Stars: ✭ 129 (+658.82%)
Mutual labels:  error-handler
Therror
Create and throw node errors like a boss
Stars: ✭ 11 (-35.29%)
Mutual labels:  error-handler
Raygun4js
JavaScript provider for Raygun
Stars: ✭ 124 (+629.41%)
Mutual labels:  error-handler
json-error
Error handler for pure-JSON apps
Stars: ✭ 84 (+394.12%)
Mutual labels:  error-handler
Raven Node
A standalone (Node.js) client for Sentry
Stars: ✭ 462 (+2617.65%)
Mutual labels:  error-handler
Bugsnag Node
[DEPRECATED] Please upgrade to our Universal JS notifier "@bugsnag/js" • https://github.com/bugsnag/bugsnag-js
Stars: ✭ 48 (+182.35%)
Mutual labels:  error-handler
strong-error-handler
Error handler for use in development (debug) and production environments.
Stars: ✭ 36 (+111.76%)
Mutual labels:  error-handler
Emperror
The Emperor takes care of all errors personally
Stars: ✭ 201 (+1082.35%)
Mutual labels:  error-handler
Sentry Ruby
Sentry SDK for Ruby
Stars: ✭ 724 (+4158.82%)
Mutual labels:  error-handler
Sentry Php
The official PHP SDK for Sentry (sentry.io)
Stars: ✭ 1,591 (+9258.82%)
Mutual labels:  error-handler
React Bsod
🔵 A Blue Screen Of Death (bsod) component to display your errors.
Stars: ✭ 309 (+1717.65%)
Mutual labels:  error-handler
Log Process Errors
Show some ❤️ to Node.js process errors
Stars: ✭ 424 (+2394.12%)
Mutual labels:  error-handler
Beauty
A microframework based on mymysql,net/http,jwt-go and mux.
Stars: ✭ 61 (+258.82%)
Mutual labels:  error-handler
error
Makes handling and debugging PHP errors suck less
Stars: ✭ 17 (+0%)
Mutual labels:  error-handler
Redux Catch
Error catcher middleware for Redux reducers and sync middlewares
Stars: ✭ 150 (+782.35%)
Mutual labels:  error-handler
laravel-error-handler
Laravel 5.2/5.3 package for better exception handling.
Stars: ✭ 15 (-11.76%)
Mutual labels:  error-handler
Rollbar Android
Rollbar for Android
Stars: ✭ 41 (+141.18%)
Mutual labels:  error-handler
backtrace-unity
First-class error reporting for the Unity game engine.
Stars: ✭ 99 (+482.35%)
Mutual labels:  error-handler
Swift Error Handler
Error handling library for Swift
Stars: ✭ 172 (+911.76%)
Mutual labels:  error-handler
Wps
WordPress plugin for whoops error handler.
Stars: ✭ 108 (+535.29%)
Mutual labels:  error-handler

merr

wrap golang error to make it easy to debug

usage

package main

import (
	"errors"
	"fmt"

	"github.com/mozhata/merr"
)

func main() {
	var err error
	err = warpper()
	logMerr(err)
}

func warpper() error {
	err := errors.New("origin err")
	return merr.WrapErr(err, "new err")
}

func logMerr(err error) {
	e := merr.WrapErr(err)
	fmt.Printf("E%d: err: %s\nraw err: %s\ncall stack: %s\n",
		e.Code,
		e.Error(),
		e.RawErr(),
		e.CallStack(),
	)
}

output:

E500: err: new err
raw err: origin err
call stack: main.warpper
	practice/go/example/main.go:18
main.main
	practice/go/example/main.go:12
runtime.main
	runtime/proc.go:183
runtime.goexit
	runtime/asm_amd64.s:2086

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].