Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
1.4 KiB
Protocol Buffer
Raw Permalink Normal View History

// Copyright IBM Corp. 2020, 2026
2020-09-26 08:30:27 -04:00
// SPDX-License-Identifier: MPL-2.0
2023-02-02 17:15:17 -08:00
2020-05-01 12:38:01 -07:00
syntax = "proto3";
package controller.api.v1;
option go_package = "repo.anhonesthost.net/CyberCoveLLC/threshold/internal/gen/controller/api;api";
2020-05-01 12:38:01 -07:00
2020-12-07 14:25:16 -07:00
// Error information relevant to an error that was wrapped by the backend.
message WrappedError {
// A string indicating what operation was being run when the wrapped error occurred.
2020-12-07 14:25:16 -07:00
string op = 1;
// The wrapped error message.
2020-12-07 14:25:16 -07:00
string message = 2;
}
// Additional details regarding a specific error.
2020-05-01 12:38:01 -07:00
message ErrorDetails {
2020-09-26 08:30:27 -04:00
// Request-field-specific error details.
2020-12-07 14:25:16 -07:00
repeated FieldError request_fields = 1 [json_name = "request_fields"];
// The errors that were wrapped in the backend for this returned error.
repeated WrappedError wrapped_errors = 2 [json_name = "wrapped_errors"];
}
// FieldErrors contains error information on a per field basis.
message FieldError {
2020-09-26 08:30:27 -04:00
// The name of the field.
string name = 1;
2020-09-26 08:30:27 -04:00
// The description of the error.
string description = 2;
2020-05-01 12:38:01 -07:00
}
// Error is returned by the JSON API when an error occurs.
message Error {
2020-12-07 14:25:16 -07:00
// The kind of error this is.
string kind = 1;
2020-12-07 14:25:16 -07:00
// An string indicating what operation was being run when the error was returned.
string op = 2;
2020-09-26 08:30:27 -04:00
// A human-readable explanation specific to this occurrence of the error.
2020-05-26 13:46:21 -07:00
string message = 3;
// Additional metadata regarding the error. Depending on the error, different fields are populated.
2020-05-04 10:58:20 -04:00
ErrorDetails details = 4;
2020-05-01 12:38:01 -07:00
}