You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: error.rs
    path of file: ./repos/skytable/server/src/engine/fractal
    
    the code of the file until where you have to start completion: /*
 * Created on Mon Oct 02 2023
 *
 * This file is a part of Skytable
 * Skytable (formerly known as TerrabaseDB or Skybase) is a free and open-source
 * NoSQL database written by Sayan Nandan ("the Author") with the
 * vision to provide
    
    fn inherit_set_origin(self, origin: Subsystem) -> Result<T, Error> {
        self.map_err(|e| {
            // inherit from parent
            let mut e = e.err_inherit_parent();
            // inherit form local if parent has no ctx
            e.dmsg = e.dmsg.or_else(|| context::pop_dmsg());
            e.add_origin(origin)
        })
    }