pub fn error_thread( ctx: Context<'_, '_, '_, '_, ThreadError<'_>>, error_code: u32, error_message: String, ) -> Result<()>
Reports an error for a thread that failed to execute.