You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/std/src/errors/std_error.rs
-25Lines changed: 0 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,3 @@
1
-
#![allow(deprecated)]
2
-
3
1
use snafu::Snafu;
4
2
5
3
/// Structured error type for init, handle and query.
@@ -57,12 +55,6 @@ pub enum StdError {
57
55
msg:String,
58
56
backtrace:Option<snafu::Backtrace>,
59
57
},
60
-
#[snafu(display("Unauthorized"))]
61
-
#[deprecated(
62
-
since = "0.11.0",
63
-
note = "All StdError cases not required by the standard library will be removed in cosmwasm-std 0.12. Please migrate to custom errors instead of using StdError."
64
-
)]
65
-
Unauthorized{backtrace:Option<snafu::Backtrace>},
66
58
#[snafu(display("Cannot subtract {} from {}", subtrahend, minuend))]
67
59
Underflow{
68
60
minuend:String,
@@ -117,14 +109,6 @@ impl StdError {
117
109
}
118
110
.build()
119
111
}
120
-
121
-
#[deprecated(
122
-
since = "0.11.0",
123
-
note = "All StdError cases not required by the standard library will be removed in cosmwasm-std 0.12. Please migrate to custom errors instead of using StdError."
124
-
)]
125
-
pubfnunauthorized() -> Self{
126
-
Unauthorized{}.build()
127
-
}
128
112
}
129
113
130
114
/// The return type for init, handle and query. Since the error type cannot be serialized to JSON,
0 commit comments