(code: i32, message: &str)
| 28 | |
| 29 | impl ErrorData { |
| 30 | pub fn new(code: i32, message: &str) -> Self { |
| 31 | Self { |
| 32 | code, |
| 33 | message: String::from(message), |
| 34 | data: Value::Null, |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | pub fn std(code: i32) -> Self { |
| 39 | match code { |
nothing calls this directly
no outgoing calls
no test coverage detected