{"record":{"id":"d442cb29ecdda9a7","repo":"bevyengine/bevy","slug":"error-d442cb","errorCode":null,"errorMessage":"{}","messagePattern":"\\{\\}","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/bevy_reflect/src/func/dynamic_function_mut.rs","lineNumber":181,"sourceCode":"    /// func.call(args).unwrap();\n    ///\n    /// drop(func);\n    /// assert_eq!(total_i32, 123);\n    /// assert_eq!(total_f32, 1.23);\n    /// ```\n    ///\n    /// [argument signature]: crate::func::signature::ArgumentSignature\n    /// [name]: Self::name\n    /// [`try_with_overload`]: Self::try_with_overload\n    pub fn with_overload<'a, F: IntoFunctionMut<'a, Marker>, Marker>(\n        self,\n        function: F,\n    ) -> DynamicFunctionMut<'a>\n    where\n        'env: 'a,\n    {\n        self.try_with_overload(function).unwrap_or_else(|(_, err)| {\n            panic!(\"{}\", err);\n        })\n    }\n\n    /// Attempt to add an overload to this function.\n    ///\n    /// If the function, `F`, contains a signature already found in this function,\n    /// an error will be returned along with the original function.\n    ///\n    /// For a panicking version, see [`with_overload`].\n    ///\n    /// [`with_overload`]: Self::with_overload\n    pub fn try_with_overload<F: IntoFunctionMut<'env, Marker>, Marker>(\n        mut self,\n        function: F,\n    ) -> Result<Self, (Box<Self>, FunctionOverloadError)> {\n        let function = function.into_function_mut();\n\n        match self.internal.merge(function.internal) {","sourceCodeStart":163,"sourceCodeEnd":199,"githubUrl":"https://github.com/bevyengine/bevy/blob/396ca727080776bd313bb892423b7d94e03b81b4/crates/bevy_reflect/src/func/dynamic_function_mut.rs#L163-L199","documentation":"Panic in DynamicFunctionMut::with_overload: the infallible wrapper discards the error value and panics with its Display output when try_with_overload fails — typically because a signature was missing, duplicated, or exceeded the max argument count. Use try_with_overload to handle the failure instead.","triggerScenarios":"Thrown at crates/bevy_reflect/src/func/dynamic_function_mut.rs:181 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use try_with_overload and handle the FunctionOverloadError","Ensure the overload has a unique argument signature"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"396ca727080776bd313bb892423b7d94e03b81b4","analyzedAt":"2026-08-20T16:12:39.808Z","contentChangedAt":"2026-08-20T16:12:39.808Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}