pravega_client/
error.rs

1//
2// Copyright (c) Dell Inc., or its subsidiaries. All Rights Reserved.
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//     http://www.apache.org/licenses/LICENSE-2.0
9//
10
11use snafu::Snafu;
12
13#[derive(Debug, Snafu)]
14pub enum Error {
15    #[snafu(display("Conditional check failed: {}", msg))]
16    ConditionalCheckFailure { msg: String },
17
18    #[snafu(display("Internal error: {}", msg))]
19    InternalFailure { msg: String },
20
21    #[snafu(display("Input is invalid: {}", msg))]
22    InvalidInput { msg: String },
23}