error_code_to_string

Function error_code_to_string 

Source
pub fn error_code_to_string(code: i64) -> &'static str
Expand description

Converts an error code to its string representation.

§Arguments

  • code - An integer representing the error code

§Returns

Returns a string slice representing the name of the error code constant and its integer value. Returns “UNKNOWN_ERROR (code)” if the error code is not recognized.