{"record":{"id":"0d5bba68519a7cee","repo":"OrchardCMS/OrchardCore","slug":"msg","errorCode":null,"errorMessage":"msg","messagePattern":"msg","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/OrchardCore.Modules/OrchardCore.Resources/wwwroot/Vendor/jquery-3.4.1/core.js","lineNumber":206,"sourceCode":"\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// Return the modified object\n\treturn target;\n};\n\njQuery.extend( {\n\n\t// Unique for each copy of jQuery on the page\n\texpando: \"jQuery\" + ( version + Math.random() ).replace( /\\D/g, \"\" ),\n\n\t// Assume jQuery is ready without the ready module\n\tisReady: true,\n\n\terror: function( msg ) {\n\t\tthrow new Error( msg );\n\t},\n\n\tnoop: function() {},\n\n\tisPlainObject: function( obj ) {\n\t\tvar proto, Ctor;\n\n\t\t// Detect obvious negatives\n\t\t// Use toString instead of jQuery.type to catch host objects\n\t\tif ( !obj || toString.call( obj ) !== \"[object Object]\" ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tproto = getProto( obj );\n\n\t\t// Objects with no prototype (e.g., `Object.create( null )`) are plain\n\t\tif ( !proto ) {\n\t\t\treturn true;","sourceCodeStart":188,"sourceCodeEnd":224,"githubUrl":"https://github.com/OrchardCMS/OrchardCore/blob/4306c0717fe573f6fca1b4955909ddab6a192807/src/OrchardCore.Modules/OrchardCore.Resources/wwwroot/Vendor/jquery-3.4.1/core.js#L188-L224","documentation":"jQuery.error is jQuery's public API for throwing errors: it simply throws new Error(msg). Any internal jQuery code path (e.g. failed animations, unsupported selector syntax passed to jQuery internals, .get() on empty sets) or user code calling $.error will surface this exception with whatever message was passed.","triggerScenarios":"Calling $.error('message') directly; internal jQuery failures that route through jQuery.error, e.g. invalid selector strings, malformed animation parameters, or jQuery.fn.get with a NaN index in some plugin code paths.","commonSituations":"Plugins that misuse jQuery internals; developers deliberately using $.error to abort on bad input; debugging stack traces pointing into core.js at the throw site.","solutions":["Read the actual msg in the stack trace to find the real failing call","Fix the caller passing the invalid argument to jQuery or the plugin","Replace direct $.error usage in your own code with standard throw new Error","Upgrade jQuery from 3.4.1 (which has known issues) to a maintained 3.7.x release"],"exampleFix":"// before\n$.error('bad input');\n// after\nif (!input) { throw new Error('bad input'); }","handlingStrategy":"try-catch","validationCode":"null","typeGuard":"null","tryCatchPattern":"try { $(selector).doSomething(); } catch (e) { if (e instanceof Error) { console.error('jQuery.error:', e.message, e.stack); } }","preventionTips":["Avoid calling $.error directly; use throw with descriptive messages","Validate arguments before passing them into jQuery APIs","Read the msg to identify the real failing internal path","Upgrade away from end-of-life jQuery 3.4.1"],"tags":["javascript","jquery","error-api"],"backgroundTag":"invalid-argument","analyzedSha":"4306c0717fe573f6fca1b4955909ddab6a192807","analyzedAt":"2026-09-13T17:41:05.024Z","contentChangedAt":"2026-09-13T17:41:05.024Z","schemaVersion":2},"datasetVersion":"2026-09-16T04:17:20.429Z"}