pub fn format_chained<C: ErrorCategory>(
error_code: ErrorCode,
next_formatter: Option<u8>,
f: Option<&mut Formatter<'_>>,
) -> (ErrorCategoryHandle, Result<Option<ErrorCodeFormatterVal>, Error>)
Expand description
Debug format the given error_code
using f
if f
is Some
, get the
ErrorCategoryHandle
of the type parameter C
, and get the next ErrorCodeFormatter
if next_formatter
is Some
.
If f
is Some()
the following format is used:
{C::NAME}({error_code}): {<error_code as C>:?}