Struct thrift::ApplicationError
source · pub struct ApplicationError {
pub kind: ApplicationErrorKind,
pub message: String,
}
Expand description
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.
Implementations§
source§impl ApplicationError
impl ApplicationError
sourcepub fn new<S: Into<String>>(
kind: ApplicationErrorKind,
message: S
) -> ApplicationError
pub fn new<S: Into<String>>(
kind: ApplicationErrorKind,
message: S
) -> ApplicationError
Create a new ApplicationError
.
Trait Implementations§
source§impl Debug for ApplicationError
impl Debug for ApplicationError
source§impl Display for ApplicationError
impl Display for ApplicationError
source§impl From<ApplicationError> for Error
impl From<ApplicationError> for Error
source§fn from(e: ApplicationError) -> Self
fn from(e: ApplicationError) -> Self
Converts to this type from the input type.