multiversx_sc/api/uncallable/
error_api_uncallable.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use crate::api::{ErrorApi, ErrorApiImpl};

impl ErrorApi for super::UncallableApi {
    type ErrorApiImpl = super::UncallableApi;

    fn error_api_impl() -> Self::ErrorApiImpl {
        super::UncallableApi
    }
}

impl ErrorApiImpl for super::UncallableApi {
    fn signal_error(&self, _message: &[u8]) -> ! {
        unreachable!()
    }

    fn signal_error_from_buffer(&self, _message_handle: Self::ManagedBufferHandle) -> ! {
        unreachable!()
    }
}