mirror of
https://github.com/luxfi/consensus.git
synced 2026-09-24 00:26:58 +00:00
18 lines
381 B
Go
18 lines
381 B
Go
// Copyright (C) 2019-2025, Lux Industries Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package core
|
|
|
|
import "fmt"
|
|
|
|
// AppError represents an application error
|
|
type AppError struct {
|
|
Code int32
|
|
Message string
|
|
}
|
|
|
|
// Error implements the error interface
|
|
func (e *AppError) Error() string {
|
|
return fmt.Sprintf("app error %d: %s", e.Code, e.Message)
|
|
}
|