Rename root, api and sdk module paths (imports, go.mod, go_package, ldflags, build scripts, buf configs) and regenerate protobuf/gateway code with the project's pinned toolchain. Wire identifiers unchanged. api gets a local replace for sdk; root/api/sdk require v0.1.0. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
45 lines
1.1 KiB
Protocol Buffer
45 lines
1.1 KiB
Protocol Buffer
// Copyright IBM Corp. 2020, 2026
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
syntax = "proto3";
|
|
|
|
package errors.v1;
|
|
|
|
import "controller/api/v1/error.proto";
|
|
|
|
option go_package = "repo.anhonesthost.net/CyberCoveLLC/threshold/internal/gen/errors;errors";
|
|
|
|
// Err is a protobuf representation of a domain error
|
|
message Err {
|
|
// code is the error's code, which can be used to get the error's
|
|
// errorCodeInfo, which contains the error's Kind and Message
|
|
uint32 code = 10;
|
|
|
|
// msg for the error
|
|
string msg = 20;
|
|
|
|
// op represents the operation raising/propagating an error and is optional.
|
|
string op = 30;
|
|
|
|
// wrapped represents an optionally wrapped error
|
|
oneof wrapped {
|
|
// err is a wrapped Err (aka a domain error)
|
|
Err err = 40;
|
|
|
|
// std_error is a wrapped std error
|
|
string std_error = 50;
|
|
|
|
// no error or err is wrapped
|
|
bool none = 60;
|
|
}
|
|
}
|
|
|
|
// ApiError is a protobuf representation of a controller ApiError
|
|
message ApiError {
|
|
// api_error is the controller ApiError
|
|
controller.api.v1.Error api_error = 10;
|
|
|
|
// status is the status code assocatiated with the api error
|
|
int32 status = 20;
|
|
}
|