Home
last modified time | relevance | path

Searched refs:error (Results 1 – 25 of 101) sorted by relevance

12345

/tonic/tonic/src/transport/channel/service/
H A Dreconnect.rs20 error: Option<crate::BoxError>, field
42 error: None, in new()
65 if self.error.is_some() { in poll_ready()
103 let error = e.into(); in poll_ready() localVariable
104 tracing::debug!("reconnect::poll_ready: {:?}", error); in poll_ready()
105 self.error = Some(error); in poll_ready()
142 if let Some(error) = self.error.take() { in call()
143 tracing::debug!("error: {}", error); in call()
144 return ResponseFuture::error(error); in call()
195 pub(crate) fn error(error: crate::BoxError) -> Self { in error() method
[all …]
/tonic/tonic-types/proto/
H A Dstatus.proto28 // The `Status` type defines a logical error model that is suitable for
31 // three pieces of data: error code, error message, and error details.
33 // You can find out more about this error model and how to work with it in the
39 // A developer-facing error message, which should be in English. Any
40 // user-facing error message should be localized and sent in the
44 // A list of messages that carry the error details. There is a common set of
H A Derror_details.proto35 // receiving the error response before retrying. If retrying requests also
47 // The stack trace entries indicating where the error occurred.
88 // Describes the cause of the error with structured details.
120 // The logical grouping to which the "reason" belongs. The error domain
122 // generates the error. Example: "pubsub.googleapis.com". If the error is
123 // generated by some common infrastructure, the error domain must be a
125 // infrastructure, the error domain is "googleapis.com".
128 // Additional structured details about this error.
215 // Describes what error is encountered when accessing this resource.
241 // which can be attached to an RPC error.
[all …]
/tonic/tonic-types/
H A DREADME.md15 be used on the server side to create a status with error details, which can then
17 [`tonic::Status`] that can be used by a tonic client to extract error details,
38 // Add error details conditionally
53 // Check if any error details were set and return error status if so
55 // Add additional error details if necessary
101 ## Working with different error message types
110 [`tonic::Status`] is presented, using vectors of error details structs wrapped
117 Besides that, multiple examples with alternative error details extraction
119 useful if only one type of standard error message is being handled by the
121 more direct way of extracting a [`BadRequest`] error message from
[all …]
/tonic/tonic/src/codec/
H A Dencode.rs31 error: Option<Status>, field
65 error: None, in new()
85 error, in poll_next()
89 if let Some(status) = error.take() { in poll_next()
125 *error = Some(status); in poll_next()
226 error: Option<Status>, field
249 error: None, in new_client()
274 error: None, in new_server()
292 let status = if let Some(status) = self.error.take() { in trailers()
/tonic/examples/
H A DREADME.md166 $ cargo run --bin richer-error-client
169 ### Client using a vector of error message types
172 $ cargo run --bin richer-error-client-vec
178 $ cargo run --bin richer-error-server
181 ### Server using a vector of error message types
184 $ cargo run --bin richer-error-server-vec
H A DCargo.toml199 name = "richer-error-client"
200 path = "src/richer-error/client.rs"
204 name = "richer-error-server"
205 path = "src/richer-error/server.rs"
209 name = "richer-error-client-vec"
210 path = "src/richer-error/client_vec.rs"
214 name = "richer-error-server-vec"
215 path = "src/richer-error/server_vec.rs"
/tonic/examples/src/interceptor/
H A Dclient.rs15 async fn main() -> Result<(), Box<dyn std::error::Error>> { in main()
52 async fn using_named_interceptor() -> Result<(), Box<dyn std::error::Error>> { in using_named_interceptor()
66 async fn using_function_pointer_interceptro() -> Result<(), Box<dyn std::error::Error>> { in using_function_pointer_interceptro()
/tonic/tonic/src/transport/
H A Dmod.rs96 mod error; module
104 pub use self::error::Error;
/tonic/examples/src/tracing/
H A Dclient.rs8 async fn main() -> Result<(), Box<dyn std::error::Error>> { in main()
19 async fn say_hi(name: String) -> Result<(), Box<dyn std::error::Error>> { in say_hi()
/tonic/tests/root-crate-path/
H A Dbuild.rs1 fn main() -> Result<(), Box<dyn std::error::Error>> { in main()
/tonic/tonic/benches-disabled/benchmarks/
H A Dutils.rs4 pub fn generate_rnd_string(string_size: usize) -> Result<String, Box<dyn std::error::Error>> { in generate_rnd_string()
/tonic/tonic-types/src/richer_error/std_messages/
H A Drequest_info.rs120 Err(error) => panic!("Error generating RequestInfo from Any: {:?}", error), in gen_request_info()
H A Dloc_message.rs121 Err(error) => panic!("Error generating LocalizedMessage from Any: {:?}", error), in gen_localized_message()
H A Ddebug_info.rs118 Err(error) => panic!("Error generating DebugInfo from Any: {:?}", error), in gen_debug_info()
H A Dresource_info.rs136 Err(error) => panic!("Error generating ResourceInfo from Any: {:?}", error), in gen_resource_info()
H A Derror_info.rs139 Err(error) => panic!("Error generating ErrorInfo from Any: {:?}", error), in gen_error_info()
/tonic/examples/src/helloworld/
H A Dclient.rs9 async fn main() -> Result<(), Box<dyn std::error::Error>> { in main()
/tonic/examples/src/tower/
H A Dclient.rs13 async fn main() -> Result<(), Box<dyn std::error::Error>> { in main()
62 type Error = Box<dyn std::error::Error + Send + Sync>;
/tonic/examples/src/codec_buffers/
H A Dclient.rs18 async fn main() -> Result<(), Box<dyn std::error::Error>> { in main()
/tonic/examples/src/json-codec/
H A Dclient.rs16 async fn main() -> Result<(), Box<dyn std::error::Error>> { in main()
/tonic/tonic-web/src/
H A Dlib.rs83 type BoxError = Box<dyn std::error::Error + Send + Sync>;
/tonic/tonic-reflection/proto/
H A Dreflection_v1alpha.proto92 // This message is used when an error occurs.
131 // The error code and error message sent by the server when an error occurs.
133 // This field uses the error codes defined in grpc::StatusCode.
/tonic/examples/src/cancellation/
H A Dclient.rs11 async fn main() -> Result<(), Box<dyn std::error::Error>> { in main()
/tonic/examples/src/load_balance/
H A Dclient.rs9 async fn main() -> Result<(), Box<dyn std::error::Error>> { in main()

12345