mirror of
https://github.com/luxfi/evmgpu.git
synced 2026-10-30 16:57:11 +00:00
19 lines
389 B
Go
19 lines
389 B
Go
// Copyright (C) 2019-2025, Lux Industries, Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package warp
|
|
|
|
// AppError represents an application-level error with a code
|
|
type AppError struct {
|
|
Code int
|
|
Message string
|
|
}
|
|
|
|
// Error implements the error interface
|
|
func (e *AppError) Error() string {
|
|
if e.Message != "" {
|
|
return e.Message
|
|
}
|
|
return "app error"
|
|
}
|