Macro unsupported_value_err

Source
macro_rules! unsupported_value_err {
    ( $context:expr, $name:expr, $value:expr $(,)? ) => { ... };
    ( $name:expr, $value:expr $(,)? ) => { ... };
}
Expand description

Creates an “unsupported value” error with context information.

This macro generates an error indicating that an unsupported value was encountered for a specific named parameter or field.

§Arguments

  • context - The context in which the error occurred (optional)
  • name - The name of the parameter or field with the unsupported value
  • value - The unsupported value that was encountered

§Examples

use ironrdp_core::unsupported_value_err;

let err = unsupported_value_err!("configuration", "log_level", "EXTREME");

§Note

If the context is not provided, it will use the current function name.