1 Error.invalidOperation = function Error$invalidOperation(message) {
5 var e = Function._validateParams(arguments, [
6 {name: "message", type: String, mayBeNull: true, optional: true}
7 ]);
8 if (e) throw e;
9 var displayMessage = "Sys.InvalidOperationException: " + (message ? message : Sys.Res.invalidOperation);
10 var e = Error.create(displayMessage, {name: 'Sys.InvalidOperationException'});
11 e.popStackFrame();
12 return e;
13 }