There was an error while loading. Please reload this page.
1 parent 6842ef7 commit e66d31aCopy full SHA for e66d31a
1 file changed
contracts/stream_contract/src/errors.rs
@@ -37,4 +37,9 @@ pub enum StreamError {
37
StreamAlreadyPaused = 14,
38
/// Operation requires an active stream, but the stream is inactive (cancelled or completed).
39
StreamNotActive = 15,
40
+ /// An amount or timestamp calculation exceeded the range of its type.
41
+ ///
42
+ /// Returned instead of letting `overflow-checks` panic and abort the whole
43
+ /// transaction, so callers get a typed failure they can handle.
44
+ ArithmeticOverflow = 16,
45
}
0 commit comments