Skip to main content

assert_code

Function assert_code 

Source
pub fn assert_code<E: DomainError + ?Sized>(err: &E, expected: &str)
Expand description

Assert that err’s code string equals expected.

§Panics

Panics with the actual code and category if they differ.