Struct rthrift::ApplicationError
[−]
[src]
pub struct ApplicationError { pub kind: ApplicationErrorKind, pub message: String, }
Information about errors in auto-generated code or in user-implemented service handlers.
Fields
kind: ApplicationErrorKind
Application error variant.
If a specific ApplicationErrorKind
does not apply use
ApplicationErrorKind::Unknown
.
message: String
Human-readable error message.
Methods
impl ApplicationError
[src]
fn new<S: Into<String>>(
kind: ApplicationErrorKind,
message: S
) -> ApplicationError
[src]
kind: ApplicationErrorKind,
message: S
) -> ApplicationError
Create a new ApplicationError
.
Trait Implementations
impl Debug for ApplicationError
[src]
impl Eq for ApplicationError
[src]
impl PartialEq for ApplicationError
[src]
fn eq(&self, __arg_0: &ApplicationError) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ApplicationError) -> bool
[src]
This method tests for !=
.