Files
threshold/internal/proto/local/controller/api/v1/error.proto
T

37 lines
1.1 KiB
Protocol Buffer
Raw Normal View History

2020-05-01 12:38:01 -07:00
syntax = "proto3";
package controller.api.v1;
2020-08-10 17:15:02 -04:00
option go_package = "github.com/hashicorp/boundary/internal/gen/controller/api;api";
2020-05-01 12:38:01 -07:00
message ErrorDetails {
2020-09-26 08:30:27 -04:00
// The TraceId that can be used for OpenTelemetry.
2020-05-26 13:46:21 -07:00
string TraceId = 1 [json_name="TraceId"];
2020-09-26 08:30:27 -04:00
// A request ID.
2020-05-26 13:46:21 -07:00
string request_id = 2 [json_name="request_id"];
2020-09-26 08:30:27 -04:00
// An Error ID.
string error_id = 3 [json_name="error_id"];
2020-09-26 08:30:27 -04:00
// Request-field-specific error details.
repeated FieldError request_fields = 4 [json_name="request_fields"];
}
// 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-09-26 08:30:27 -04:00
// The HTTP Status code applicable to this error.
2020-05-26 13:46:21 -07:00
int32 status = 1;
2020-09-26 08:30:27 -04:00
// An application-specific error string.
2020-05-26 13:46:21 -07:00
string code = 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;
2020-09-26 08:30:27 -04:00
// Additional metadata regarding the error. Depending on the error, different fields will be populated.
2020-05-04 10:58:20 -04:00
ErrorDetails details = 4;
2020-05-01 12:38:01 -07:00
}