{"record":{"id":"7ef552fd16d9867a","repo":"bevyengine/bevy","slug":"argument-count-out-of-bounds-0","errorCode":null,"errorMessage":"argument count out of bounds: {0}","messagePattern":"argument count out of bounds: (.+?)","errorType":"exception","errorClass":"ArgCountOutOfBoundsError","httpStatus":null,"severity":"error","filePath":"crates/bevy_reflect/src/func/args/error.rs","lineNumber":41,"sourceCode":"    #[error(\"expected {expected} value but received {received} value (@ argument index {index})\")]\n    InvalidOwnership {\n        /// Argument index.\n        index: usize,\n        /// Expected ownership.\n        expected: Ownership,\n        /// Received ownership.\n        received: Ownership,\n    },\n    /// Occurs when attempting to access an argument from an empty [`ArgList`].\n    ///\n    /// [`ArgList`]: crate::func::args::ArgList\n    #[error(\"expected an argument but received none\")]\n    EmptyArgList,\n}\n\n/// The given argument count is out of bounds.\n#[derive(Debug, Error, PartialEq)]\n#[error(\"argument count out of bounds: {0}\")]\npub struct ArgCountOutOfBoundsError(pub usize);\n","sourceCodeStart":23,"sourceCodeEnd":43,"githubUrl":"https://github.com/bevyengine/bevy/blob/396ca727080776bd313bb892423b7d94e03b81b4/crates/bevy_reflect/src/func/args/error.rs#L23-L43","documentation":"ArgCountError — the number of arguments in an ArgList is outside the valid range (below the expected count or above ArgCount::MAX_COUNT); the offending count is the payload. Supply the exact number of arguments the function signature requires.","triggerScenarios":"Thrown at crates/bevy_reflect/src/func/args/error.rs:41 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Reduce the number of arguments to within the supported bounds","Bundle arguments into a struct type when more are needed"],"exampleFix":null,"handlingStrategy":"validation","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"}