// 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" }