Function simics::api::base::conf_object::_attribute_error

source ·
fn _attribute_error<S>(msg: S) -> Result<()>
where S: AsRef<str>,
Expand description

When used inside an attribute set_attr/get_attr method, indicates why it failed to set or retrieve the attribute. This function only serves to give an informative message to the user. The object or attribute names need not be mentioned in the msg argument; Simics will supply this automatically.

The error message supplied will be attached to any frontend exception generated by the attribute access.

§Arguments

  • msg - The message to set on an attribute error

§Context

Cell Context