waves_rust/model/transaction/action/
action_error.rs

1#[derive(Clone, Eq, PartialEq, Debug)]
2pub struct ActionError {
3    code: u32,
4    text: String,
5}
6
7impl ActionError {
8    pub fn new(code: u32, text: String) -> ActionError {
9        ActionError { code, text }
10    }
11
12    pub fn code(&self) -> u32 {
13        self.code
14    }
15
16    pub fn text(&self) -> String {
17        self.text.clone()
18    }
19}