mirror of
https://github.com/luxfi/consensus.git
synced 2026-09-24 00:26:58 +00:00
20 lines
297 B
Go
20 lines
297 B
Go
package common
|
|
|
|
import "errors"
|
|
|
|
// Common errors
|
|
var (
|
|
ErrUndefined = errors.New("undefined error")
|
|
)
|
|
|
|
// AppError represents an application error
|
|
type AppError struct {
|
|
Code int32
|
|
Message string
|
|
}
|
|
|
|
// Error returns the error message
|
|
func (e *AppError) Error() string {
|
|
return e.Message
|
|
}
|