Macro unsupported_version_err

Source
macro_rules! unsupported_version_err {
    ( $context:expr, $got:expr $(,)? ) => { ... };
    ( $got:expr $(,)? ) => { ... };
}
Expand description

Creates an “unsupported version” error with context information.

This macro generates an error indicating that an unsupported version was encountered in a particular context.

§Arguments

  • context - The context in which the error occurred (optional)
  • got - The unsupported version that was encountered

§Examples

use ironrdp_core::unsupported_version_err;

let err = unsupported_version_err!("protocol version", 12);

§Note

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