1#[cfg(feature = "moon_sharp-interpreter-scriptruntimeexception-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 moon_sharp::interpreter::interpreterexception::{IInterpreterException, InterpreterException},
10 system::object::{IObject, Object},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/moon_sharp/interpreter/scriptruntimeexception/ScriptRuntimeException.md"))]
14 #[::unity::class(namespace = "MoonSharp.Interpreter", name = "ScriptRuntimeException")]
15 #[parent(crate::moon_sharp::interpreter::interpreterexception::InterpreterException)]
16 pub struct ScriptRuntimeException {}
17}
18
19#[cfg(feature = "moon_sharp-interpreter-scriptruntimeexception-types")]
20pub use __types::*;
21
22#[cfg(feature = "moon_sharp-interpreter-scriptruntimeexception")]
23#[doc(hidden)]
24#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
25mod __ScriptRuntimeException_unity_raw {
26 use super::*;
27 #[doc(hidden)]
28 #[allow(non_snake_case)]
29 pub mod __lookup_ctor {
30 use super::*;
31 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
32 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
33 &[<crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException as ::unity::IlType>::il_type()];
34 ::unity::lookup::method_info_on_class_with_signature(
35 <ScriptRuntimeException as ::unity::ClassIdentity>::class(),
36 ".ctor",
37 1,
38 param_types,
39 false,
40 )
41 });
42 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
43 match &*METHOD {
44 ::core::result::Result::Ok(mi) => *mi,
45 ::core::result::Result::Err(e) => {
46 panic!(
47 "method lookup failed: {}
48::{}
49: {}
50",
51 <ScriptRuntimeException as ::unity::ClassIdentity>::NAME,
52 ".ctor",
53 e
54 )
55 },
56 }
57 }
58 }
59 #[doc(hidden)]
60 #[allow(non_snake_case)]
61 pub mod __lookup_ctor_2 {
62 use super::*;
63 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
64 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<::unity::Il2CppString as ::unity::IlType>::il_type()];
65 ::unity::lookup::method_info_on_class_with_signature(
66 <ScriptRuntimeException as ::unity::ClassIdentity>::class(),
67 ".ctor",
68 1,
69 param_types,
70 false,
71 )
72 });
73 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
74 match &*METHOD {
75 ::core::result::Result::Ok(mi) => *mi,
76 ::core::result::Result::Err(e) => {
77 panic!(
78 "method lookup failed: {}
79::{}
80: {}
81",
82 <ScriptRuntimeException as ::unity::ClassIdentity>::NAME,
83 ".ctor",
84 e
85 )
86 },
87 }
88 }
89 }
90 #[doc(hidden)]
91 #[allow(non_snake_case)]
92 pub mod __lookup_ctor_3 {
93 use super::*;
94 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
95 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
96 <::unity::Il2CppString as ::unity::IlType>::il_type(),
97 <::unity::Array<crate::system::object::Object> as ::unity::IlType>::il_type(),
98 ];
99 ::unity::lookup::method_info_on_class_with_signature(
100 <ScriptRuntimeException as ::unity::ClassIdentity>::class(),
101 ".ctor",
102 2,
103 param_types,
104 false,
105 )
106 });
107 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
108 match &*METHOD {
109 ::core::result::Result::Ok(mi) => *mi,
110 ::core::result::Result::Err(e) => {
111 panic!(
112 "method lookup failed: {}
113::{}
114: {}
115",
116 <ScriptRuntimeException as ::unity::ClassIdentity>::NAME,
117 ".ctor",
118 e
119 )
120 },
121 }
122 }
123 }
124 #[doc(hidden)]
125 #[allow(non_snake_case)]
126 pub mod __lookup_arithmetic_on_non_number {
127 use super::*;
128 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
129 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
130 <crate::moon_sharp::interpreter::dynvalue::DynValue as ::unity::IlType>::il_type(),
131 <crate::moon_sharp::interpreter::dynvalue::DynValue as ::unity::IlType>::il_type(),
132 ];
133 ::unity::lookup::method_info_on_class_with_signature(
134 <ScriptRuntimeException as ::unity::ClassIdentity>::class(),
135 "ArithmeticOnNonNumber",
136 2,
137 param_types,
138 true,
139 )
140 });
141 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
142 match &*METHOD {
143 ::core::result::Result::Ok(mi) => *mi,
144 ::core::result::Result::Err(e) => {
145 panic!(
146 "method lookup failed: {}
147::{}
148: {}
149",
150 <ScriptRuntimeException as ::unity::ClassIdentity>::NAME,
151 "ArithmeticOnNonNumber",
152 e
153 )
154 },
155 }
156 }
157 }
158 #[doc(hidden)]
159 #[allow(non_snake_case)]
160 pub mod __lookup_concat_on_non_string {
161 use super::*;
162 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
163 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
164 <crate::moon_sharp::interpreter::dynvalue::DynValue as ::unity::IlType>::il_type(),
165 <crate::moon_sharp::interpreter::dynvalue::DynValue as ::unity::IlType>::il_type(),
166 ];
167 ::unity::lookup::method_info_on_class_with_signature(
168 <ScriptRuntimeException as ::unity::ClassIdentity>::class(),
169 "ConcatOnNonString",
170 2,
171 param_types,
172 true,
173 )
174 });
175 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
176 match &*METHOD {
177 ::core::result::Result::Ok(mi) => *mi,
178 ::core::result::Result::Err(e) => {
179 panic!(
180 "method lookup failed: {}
181::{}
182: {}
183",
184 <ScriptRuntimeException as ::unity::ClassIdentity>::NAME,
185 "ConcatOnNonString",
186 e
187 )
188 },
189 }
190 }
191 }
192 #[doc(hidden)]
193 #[allow(non_snake_case)]
194 pub mod __lookup_len_on_invalid_type {
195 use super::*;
196 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
197 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
198 &[<crate::moon_sharp::interpreter::dynvalue::DynValue as ::unity::IlType>::il_type()];
199 ::unity::lookup::method_info_on_class_with_signature(
200 <ScriptRuntimeException as ::unity::ClassIdentity>::class(),
201 "LenOnInvalidType",
202 1,
203 param_types,
204 true,
205 )
206 });
207 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
208 match &*METHOD {
209 ::core::result::Result::Ok(mi) => *mi,
210 ::core::result::Result::Err(e) => {
211 panic!(
212 "method lookup failed: {}
213::{}
214: {}
215",
216 <ScriptRuntimeException as ::unity::ClassIdentity>::NAME,
217 "LenOnInvalidType",
218 e
219 )
220 },
221 }
222 }
223 }
224 #[doc(hidden)]
225 #[allow(non_snake_case)]
226 pub mod __lookup_compare_invalid_type {
227 use super::*;
228 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
229 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
230 <crate::moon_sharp::interpreter::dynvalue::DynValue as ::unity::IlType>::il_type(),
231 <crate::moon_sharp::interpreter::dynvalue::DynValue as ::unity::IlType>::il_type(),
232 ];
233 ::unity::lookup::method_info_on_class_with_signature(
234 <ScriptRuntimeException as ::unity::ClassIdentity>::class(),
235 "CompareInvalidType",
236 2,
237 param_types,
238 true,
239 )
240 });
241 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
242 match &*METHOD {
243 ::core::result::Result::Ok(mi) => *mi,
244 ::core::result::Result::Err(e) => {
245 panic!(
246 "method lookup failed: {}
247::{}
248: {}
249",
250 <ScriptRuntimeException as ::unity::ClassIdentity>::NAME,
251 "CompareInvalidType",
252 e
253 )
254 },
255 }
256 }
257 }
258 #[doc(hidden)]
259 #[allow(non_snake_case)]
260 pub mod __lookup_bad_argument {
261 use super::*;
262 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
263 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
264 <i32 as ::unity::IlType>::il_type(),
265 <::unity::Il2CppString as ::unity::IlType>::il_type(),
266 <::unity::Il2CppString as ::unity::IlType>::il_type(),
267 ];
268 ::unity::lookup::method_info_on_class_with_signature(
269 <ScriptRuntimeException as ::unity::ClassIdentity>::class(),
270 "BadArgument",
271 3,
272 param_types,
273 true,
274 )
275 });
276 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
277 match &*METHOD {
278 ::core::result::Result::Ok(mi) => *mi,
279 ::core::result::Result::Err(e) => {
280 panic!(
281 "method lookup failed: {}
282::{}
283: {}
284",
285 <ScriptRuntimeException as ::unity::ClassIdentity>::NAME,
286 "BadArgument",
287 e
288 )
289 },
290 }
291 }
292 }
293 #[doc(hidden)]
294 #[allow(non_snake_case)]
295 pub mod __lookup_bad_argument_user_data {
296 use super::*;
297 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
298 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
299 <i32 as ::unity::IlType>::il_type(),
300 <::unity::Il2CppString as ::unity::IlType>::il_type(),
301 <::unity::SystemType as ::unity::IlType>::il_type(),
302 <crate::system::object::Object as ::unity::IlType>::il_type(),
303 <bool as ::unity::IlType>::il_type(),
304 ];
305 ::unity::lookup::method_info_on_class_with_signature(
306 <ScriptRuntimeException as ::unity::ClassIdentity>::class(),
307 "BadArgumentUserData",
308 5,
309 param_types,
310 true,
311 )
312 });
313 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
314 match &*METHOD {
315 ::core::result::Result::Ok(mi) => *mi,
316 ::core::result::Result::Err(e) => {
317 panic!(
318 "method lookup failed: {}
319::{}
320: {}
321",
322 <ScriptRuntimeException as ::unity::ClassIdentity>::NAME,
323 "BadArgumentUserData",
324 e
325 )
326 },
327 }
328 }
329 }
330 #[doc(hidden)]
331 #[allow(non_snake_case)]
332 pub mod __lookup_bad_argument_2 {
333 use super::*;
334 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
335 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
336 <i32 as ::unity::IlType>::il_type(),
337 <::unity::Il2CppString as ::unity::IlType>::il_type(),
338 <crate::moon_sharp::interpreter::datatype::DataType as ::unity::IlType>::il_type(),
339 <crate::moon_sharp::interpreter::datatype::DataType as ::unity::IlType>::il_type(),
340 <bool as ::unity::IlType>::il_type(),
341 ];
342 ::unity::lookup::method_info_on_class_with_signature(
343 <ScriptRuntimeException as ::unity::ClassIdentity>::class(),
344 "BadArgument",
345 5,
346 param_types,
347 true,
348 )
349 });
350 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
351 match &*METHOD {
352 ::core::result::Result::Ok(mi) => *mi,
353 ::core::result::Result::Err(e) => {
354 panic!(
355 "method lookup failed: {}
356::{}
357: {}
358",
359 <ScriptRuntimeException as ::unity::ClassIdentity>::NAME,
360 "BadArgument",
361 e
362 )
363 },
364 }
365 }
366 }
367 #[doc(hidden)]
368 #[allow(non_snake_case)]
369 pub mod __lookup_bad_argument_3 {
370 use super::*;
371 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
372 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
373 <i32 as ::unity::IlType>::il_type(),
374 <::unity::Il2CppString as ::unity::IlType>::il_type(),
375 <::unity::Il2CppString as ::unity::IlType>::il_type(),
376 <::unity::Il2CppString as ::unity::IlType>::il_type(),
377 <bool as ::unity::IlType>::il_type(),
378 ];
379 ::unity::lookup::method_info_on_class_with_signature(
380 <ScriptRuntimeException as ::unity::ClassIdentity>::class(),
381 "BadArgument",
382 5,
383 param_types,
384 true,
385 )
386 });
387 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
388 match &*METHOD {
389 ::core::result::Result::Ok(mi) => *mi,
390 ::core::result::Result::Err(e) => {
391 panic!(
392 "method lookup failed: {}
393::{}
394: {}
395",
396 <ScriptRuntimeException as ::unity::ClassIdentity>::NAME,
397 "BadArgument",
398 e
399 )
400 },
401 }
402 }
403 }
404 #[doc(hidden)]
405 #[allow(non_snake_case)]
406 pub mod __lookup_bad_argument_no_value {
407 use super::*;
408 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
409 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
410 <i32 as ::unity::IlType>::il_type(),
411 <::unity::Il2CppString as ::unity::IlType>::il_type(),
412 <crate::moon_sharp::interpreter::datatype::DataType as ::unity::IlType>::il_type(),
413 ];
414 ::unity::lookup::method_info_on_class_with_signature(
415 <ScriptRuntimeException as ::unity::ClassIdentity>::class(),
416 "BadArgumentNoValue",
417 3,
418 param_types,
419 true,
420 )
421 });
422 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
423 match &*METHOD {
424 ::core::result::Result::Ok(mi) => *mi,
425 ::core::result::Result::Err(e) => {
426 panic!(
427 "method lookup failed: {}
428::{}
429: {}
430",
431 <ScriptRuntimeException as ::unity::ClassIdentity>::NAME,
432 "BadArgumentNoValue",
433 e
434 )
435 },
436 }
437 }
438 }
439 #[doc(hidden)]
440 #[allow(non_snake_case)]
441 pub mod __lookup_bad_argument_index_out_of_range {
442 use super::*;
443 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
444 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
445 &[<::unity::Il2CppString as ::unity::IlType>::il_type(), <i32 as ::unity::IlType>::il_type()];
446 ::unity::lookup::method_info_on_class_with_signature(
447 <ScriptRuntimeException as ::unity::ClassIdentity>::class(),
448 "BadArgumentIndexOutOfRange",
449 2,
450 param_types,
451 true,
452 )
453 });
454 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
455 match &*METHOD {
456 ::core::result::Result::Ok(mi) => *mi,
457 ::core::result::Result::Err(e) => {
458 panic!(
459 "method lookup failed: {}
460::{}
461: {}
462",
463 <ScriptRuntimeException as ::unity::ClassIdentity>::NAME,
464 "BadArgumentIndexOutOfRange",
465 e
466 )
467 },
468 }
469 }
470 }
471 #[doc(hidden)]
472 #[allow(non_snake_case)]
473 pub mod __lookup_bad_argument_no_negative_numbers {
474 use super::*;
475 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
476 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
477 &[<i32 as ::unity::IlType>::il_type(), <::unity::Il2CppString as ::unity::IlType>::il_type()];
478 ::unity::lookup::method_info_on_class_with_signature(
479 <ScriptRuntimeException as ::unity::ClassIdentity>::class(),
480 "BadArgumentNoNegativeNumbers",
481 2,
482 param_types,
483 true,
484 )
485 });
486 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
487 match &*METHOD {
488 ::core::result::Result::Ok(mi) => *mi,
489 ::core::result::Result::Err(e) => {
490 panic!(
491 "method lookup failed: {}
492::{}
493: {}
494",
495 <ScriptRuntimeException as ::unity::ClassIdentity>::NAME,
496 "BadArgumentNoNegativeNumbers",
497 e
498 )
499 },
500 }
501 }
502 }
503 #[doc(hidden)]
504 #[allow(non_snake_case)]
505 pub mod __lookup_bad_argument_value_expected {
506 use super::*;
507 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
508 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
509 &[<i32 as ::unity::IlType>::il_type(), <::unity::Il2CppString as ::unity::IlType>::il_type()];
510 ::unity::lookup::method_info_on_class_with_signature(
511 <ScriptRuntimeException as ::unity::ClassIdentity>::class(),
512 "BadArgumentValueExpected",
513 2,
514 param_types,
515 true,
516 )
517 });
518 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
519 match &*METHOD {
520 ::core::result::Result::Ok(mi) => *mi,
521 ::core::result::Result::Err(e) => {
522 panic!(
523 "method lookup failed: {}
524::{}
525: {}
526",
527 <ScriptRuntimeException as ::unity::ClassIdentity>::NAME,
528 "BadArgumentValueExpected",
529 e
530 )
531 },
532 }
533 }
534 }
535 #[doc(hidden)]
536 #[allow(non_snake_case)]
537 pub mod __lookup_index_type {
538 use super::*;
539 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
540 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
541 &[<crate::moon_sharp::interpreter::dynvalue::DynValue as ::unity::IlType>::il_type()];
542 ::unity::lookup::method_info_on_class_with_signature(
543 <ScriptRuntimeException as ::unity::ClassIdentity>::class(),
544 "IndexType",
545 1,
546 param_types,
547 true,
548 )
549 });
550 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
551 match &*METHOD {
552 ::core::result::Result::Ok(mi) => *mi,
553 ::core::result::Result::Err(e) => {
554 panic!(
555 "method lookup failed: {}
556::{}
557: {}
558",
559 <ScriptRuntimeException as ::unity::ClassIdentity>::NAME,
560 "IndexType",
561 e
562 )
563 },
564 }
565 }
566 }
567 #[doc(hidden)]
568 #[allow(non_snake_case)]
569 pub mod __lookup_loop_in_index {
570 use super::*;
571 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
572 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
573 ::unity::lookup::method_info_on_class_with_signature(
574 <ScriptRuntimeException as ::unity::ClassIdentity>::class(),
575 "LoopInIndex",
576 0,
577 param_types,
578 true,
579 )
580 });
581 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
582 match &*METHOD {
583 ::core::result::Result::Ok(mi) => *mi,
584 ::core::result::Result::Err(e) => {
585 panic!(
586 "method lookup failed: {}
587::{}
588: {}
589",
590 <ScriptRuntimeException as ::unity::ClassIdentity>::NAME,
591 "LoopInIndex",
592 e
593 )
594 },
595 }
596 }
597 }
598 #[doc(hidden)]
599 #[allow(non_snake_case)]
600 pub mod __lookup_loop_in_new_index {
601 use super::*;
602 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
603 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
604 ::unity::lookup::method_info_on_class_with_signature(
605 <ScriptRuntimeException as ::unity::ClassIdentity>::class(),
606 "LoopInNewIndex",
607 0,
608 param_types,
609 true,
610 )
611 });
612 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
613 match &*METHOD {
614 ::core::result::Result::Ok(mi) => *mi,
615 ::core::result::Result::Err(e) => {
616 panic!(
617 "method lookup failed: {}
618::{}
619: {}
620",
621 <ScriptRuntimeException as ::unity::ClassIdentity>::NAME,
622 "LoopInNewIndex",
623 e
624 )
625 },
626 }
627 }
628 }
629 #[doc(hidden)]
630 #[allow(non_snake_case)]
631 pub mod __lookup_loop_in_call {
632 use super::*;
633 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
634 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
635 ::unity::lookup::method_info_on_class_with_signature(
636 <ScriptRuntimeException as ::unity::ClassIdentity>::class(),
637 "LoopInCall",
638 0,
639 param_types,
640 true,
641 )
642 });
643 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
644 match &*METHOD {
645 ::core::result::Result::Ok(mi) => *mi,
646 ::core::result::Result::Err(e) => {
647 panic!(
648 "method lookup failed: {}
649::{}
650: {}
651",
652 <ScriptRuntimeException as ::unity::ClassIdentity>::NAME,
653 "LoopInCall",
654 e
655 )
656 },
657 }
658 }
659 }
660 #[doc(hidden)]
661 #[allow(non_snake_case)]
662 pub mod __lookup_table_index_is_nil {
663 use super::*;
664 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
665 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
666 ::unity::lookup::method_info_on_class_with_signature(
667 <ScriptRuntimeException as ::unity::ClassIdentity>::class(),
668 "TableIndexIsNil",
669 0,
670 param_types,
671 true,
672 )
673 });
674 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
675 match &*METHOD {
676 ::core::result::Result::Ok(mi) => *mi,
677 ::core::result::Result::Err(e) => {
678 panic!(
679 "method lookup failed: {}
680::{}
681: {}
682",
683 <ScriptRuntimeException as ::unity::ClassIdentity>::NAME,
684 "TableIndexIsNil",
685 e
686 )
687 },
688 }
689 }
690 }
691 #[doc(hidden)]
692 #[allow(non_snake_case)]
693 pub mod __lookup_table_index_is_na_n {
694 use super::*;
695 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
696 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
697 ::unity::lookup::method_info_on_class_with_signature(
698 <ScriptRuntimeException as ::unity::ClassIdentity>::class(),
699 "TableIndexIsNaN",
700 0,
701 param_types,
702 true,
703 )
704 });
705 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
706 match &*METHOD {
707 ::core::result::Result::Ok(mi) => *mi,
708 ::core::result::Result::Err(e) => {
709 panic!(
710 "method lookup failed: {}
711::{}
712: {}
713",
714 <ScriptRuntimeException as ::unity::ClassIdentity>::NAME,
715 "TableIndexIsNaN",
716 e
717 )
718 },
719 }
720 }
721 }
722 #[doc(hidden)]
723 #[allow(non_snake_case)]
724 pub mod __lookup_convert_to_number_failed {
725 use super::*;
726 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
727 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<i32 as ::unity::IlType>::il_type()];
728 ::unity::lookup::method_info_on_class_with_signature(
729 <ScriptRuntimeException as ::unity::ClassIdentity>::class(),
730 "ConvertToNumberFailed",
731 1,
732 param_types,
733 true,
734 )
735 });
736 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
737 match &*METHOD {
738 ::core::result::Result::Ok(mi) => *mi,
739 ::core::result::Result::Err(e) => {
740 panic!(
741 "method lookup failed: {}
742::{}
743: {}
744",
745 <ScriptRuntimeException as ::unity::ClassIdentity>::NAME,
746 "ConvertToNumberFailed",
747 e
748 )
749 },
750 }
751 }
752 }
753 #[doc(hidden)]
754 #[allow(non_snake_case)]
755 pub mod __lookup_convert_object_failed {
756 use super::*;
757 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
758 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<crate::system::object::Object as ::unity::IlType>::il_type()];
759 ::unity::lookup::method_info_on_class_with_signature(
760 <ScriptRuntimeException as ::unity::ClassIdentity>::class(),
761 "ConvertObjectFailed",
762 1,
763 param_types,
764 true,
765 )
766 });
767 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
768 match &*METHOD {
769 ::core::result::Result::Ok(mi) => *mi,
770 ::core::result::Result::Err(e) => {
771 panic!(
772 "method lookup failed: {}
773::{}
774: {}
775",
776 <ScriptRuntimeException as ::unity::ClassIdentity>::NAME,
777 "ConvertObjectFailed",
778 e
779 )
780 },
781 }
782 }
783 }
784 #[doc(hidden)]
785 #[allow(non_snake_case)]
786 pub mod __lookup_convert_object_failed_2 {
787 use super::*;
788 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
789 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
790 &[<crate::moon_sharp::interpreter::datatype::DataType as ::unity::IlType>::il_type()];
791 ::unity::lookup::method_info_on_class_with_signature(
792 <ScriptRuntimeException as ::unity::ClassIdentity>::class(),
793 "ConvertObjectFailed",
794 1,
795 param_types,
796 true,
797 )
798 });
799 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
800 match &*METHOD {
801 ::core::result::Result::Ok(mi) => *mi,
802 ::core::result::Result::Err(e) => {
803 panic!(
804 "method lookup failed: {}
805::{}
806: {}
807",
808 <ScriptRuntimeException as ::unity::ClassIdentity>::NAME,
809 "ConvertObjectFailed",
810 e
811 )
812 },
813 }
814 }
815 }
816 #[doc(hidden)]
817 #[allow(non_snake_case)]
818 pub mod __lookup_convert_object_failed_3 {
819 use super::*;
820 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
821 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
822 <crate::moon_sharp::interpreter::datatype::DataType as ::unity::IlType>::il_type(),
823 <::unity::SystemType as ::unity::IlType>::il_type(),
824 ];
825 ::unity::lookup::method_info_on_class_with_signature(
826 <ScriptRuntimeException as ::unity::ClassIdentity>::class(),
827 "ConvertObjectFailed",
828 2,
829 param_types,
830 true,
831 )
832 });
833 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
834 match &*METHOD {
835 ::core::result::Result::Ok(mi) => *mi,
836 ::core::result::Result::Err(e) => {
837 panic!(
838 "method lookup failed: {}
839::{}
840: {}
841",
842 <ScriptRuntimeException as ::unity::ClassIdentity>::NAME,
843 "ConvertObjectFailed",
844 e
845 )
846 },
847 }
848 }
849 }
850 #[doc(hidden)]
851 #[allow(non_snake_case)]
852 pub mod __lookup_user_data_argument_type_mismatch {
853 use super::*;
854 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
855 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
856 <crate::moon_sharp::interpreter::datatype::DataType as ::unity::IlType>::il_type(),
857 <::unity::SystemType as ::unity::IlType>::il_type(),
858 ];
859 ::unity::lookup::method_info_on_class_with_signature(
860 <ScriptRuntimeException as ::unity::ClassIdentity>::class(),
861 "UserDataArgumentTypeMismatch",
862 2,
863 param_types,
864 true,
865 )
866 });
867 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
868 match &*METHOD {
869 ::core::result::Result::Ok(mi) => *mi,
870 ::core::result::Result::Err(e) => {
871 panic!(
872 "method lookup failed: {}
873::{}
874: {}
875",
876 <ScriptRuntimeException as ::unity::ClassIdentity>::NAME,
877 "UserDataArgumentTypeMismatch",
878 e
879 )
880 },
881 }
882 }
883 }
884 #[doc(hidden)]
885 #[allow(non_snake_case)]
886 pub mod __lookup_user_data_missing_field {
887 use super::*;
888 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
889 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
890 <::unity::Il2CppString as ::unity::IlType>::il_type(),
891 <::unity::Il2CppString as ::unity::IlType>::il_type(),
892 ];
893 ::unity::lookup::method_info_on_class_with_signature(
894 <ScriptRuntimeException as ::unity::ClassIdentity>::class(),
895 "UserDataMissingField",
896 2,
897 param_types,
898 true,
899 )
900 });
901 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
902 match &*METHOD {
903 ::core::result::Result::Ok(mi) => *mi,
904 ::core::result::Result::Err(e) => {
905 panic!(
906 "method lookup failed: {}
907::{}
908: {}
909",
910 <ScriptRuntimeException as ::unity::ClassIdentity>::NAME,
911 "UserDataMissingField",
912 e
913 )
914 },
915 }
916 }
917 }
918 #[doc(hidden)]
919 #[allow(non_snake_case)]
920 pub mod __lookup_cannot_resume_not_suspended {
921 use super::*;
922 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
923 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
924 &[<crate::moon_sharp::interpreter::coroutinestate::CoroutineState as ::unity::IlType>::il_type()];
925 ::unity::lookup::method_info_on_class_with_signature(
926 <ScriptRuntimeException as ::unity::ClassIdentity>::class(),
927 "CannotResumeNotSuspended",
928 1,
929 param_types,
930 true,
931 )
932 });
933 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
934 match &*METHOD {
935 ::core::result::Result::Ok(mi) => *mi,
936 ::core::result::Result::Err(e) => {
937 panic!(
938 "method lookup failed: {}
939::{}
940: {}
941",
942 <ScriptRuntimeException as ::unity::ClassIdentity>::NAME,
943 "CannotResumeNotSuspended",
944 e
945 )
946 },
947 }
948 }
949 }
950 #[doc(hidden)]
951 #[allow(non_snake_case)]
952 pub mod __lookup_cannot_yield {
953 use super::*;
954 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
955 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
956 ::unity::lookup::method_info_on_class_with_signature(
957 <ScriptRuntimeException as ::unity::ClassIdentity>::class(),
958 "CannotYield",
959 0,
960 param_types,
961 true,
962 )
963 });
964 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
965 match &*METHOD {
966 ::core::result::Result::Ok(mi) => *mi,
967 ::core::result::Result::Err(e) => {
968 panic!(
969 "method lookup failed: {}
970::{}
971: {}
972",
973 <ScriptRuntimeException as ::unity::ClassIdentity>::NAME,
974 "CannotYield",
975 e
976 )
977 },
978 }
979 }
980 }
981 #[doc(hidden)]
982 #[allow(non_snake_case)]
983 pub mod __lookup_cannot_yield_main {
984 use super::*;
985 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
986 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
987 ::unity::lookup::method_info_on_class_with_signature(
988 <ScriptRuntimeException as ::unity::ClassIdentity>::class(),
989 "CannotYieldMain",
990 0,
991 param_types,
992 true,
993 )
994 });
995 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
996 match &*METHOD {
997 ::core::result::Result::Ok(mi) => *mi,
998 ::core::result::Result::Err(e) => {
999 panic!(
1000 "method lookup failed: {}
1001::{}
1002: {}
1003",
1004 <ScriptRuntimeException as ::unity::ClassIdentity>::NAME,
1005 "CannotYieldMain",
1006 e
1007 )
1008 },
1009 }
1010 }
1011 }
1012 #[doc(hidden)]
1013 #[allow(non_snake_case)]
1014 pub mod __lookup_attempt_to_call_non_func {
1015 use super::*;
1016 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
1017 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
1018 <crate::moon_sharp::interpreter::datatype::DataType as ::unity::IlType>::il_type(),
1019 <::unity::Il2CppString as ::unity::IlType>::il_type(),
1020 ];
1021 ::unity::lookup::method_info_on_class_with_signature(
1022 <ScriptRuntimeException as ::unity::ClassIdentity>::class(),
1023 "AttemptToCallNonFunc",
1024 2,
1025 param_types,
1026 true,
1027 )
1028 });
1029 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1030 match &*METHOD {
1031 ::core::result::Result::Ok(mi) => *mi,
1032 ::core::result::Result::Err(e) => {
1033 panic!(
1034 "method lookup failed: {}
1035::{}
1036: {}
1037",
1038 <ScriptRuntimeException as ::unity::ClassIdentity>::NAME,
1039 "AttemptToCallNonFunc",
1040 e
1041 )
1042 },
1043 }
1044 }
1045 }
1046 #[doc(hidden)]
1047 #[allow(non_snake_case)]
1048 pub mod __lookup_access_instance_member_on_statics {
1049 use super::*;
1050 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
1051 let param_types: &[& 'static::unity::il2cpp::Il2CppType]= &[<crate::moon_sharp::interpreter::interop::basic_descriptors::imemberdescriptor_interface::IMemberDescriptor_Interface as::unity::IlType> ::il_type()];
1052 ::unity::lookup::method_info_on_class_with_signature(
1053 <ScriptRuntimeException as ::unity::ClassIdentity>::class(),
1054 "AccessInstanceMemberOnStatics",
1055 1,
1056 param_types,
1057 true,
1058 )
1059 });
1060 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1061 match &*METHOD {
1062 ::core::result::Result::Ok(mi) => *mi,
1063 ::core::result::Result::Err(e) => {
1064 panic!(
1065 "method lookup failed: {}
1066::{}
1067: {}
1068",
1069 <ScriptRuntimeException as ::unity::ClassIdentity>::NAME,
1070 "AccessInstanceMemberOnStatics",
1071 e
1072 )
1073 },
1074 }
1075 }
1076 }
1077 #[doc(hidden)]
1078 #[allow(non_snake_case)]
1079 pub mod __lookup_access_instance_member_on_statics_2 {
1080 use super::*;
1081 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
1082 let param_types: &[& 'static::unity::il2cpp::Il2CppType]= &[<crate::moon_sharp::interpreter::interop::iuserdatadescriptor::IUserDataDescriptor as::unity::IlType> ::il_type(), <crate::moon_sharp::interpreter::interop::basic_descriptors::imemberdescriptor_interface::IMemberDescriptor_Interface as::unity::IlType> ::il_type()];
1083 ::unity::lookup::method_info_on_class_with_signature(
1084 <ScriptRuntimeException as ::unity::ClassIdentity>::class(),
1085 "AccessInstanceMemberOnStatics",
1086 2,
1087 param_types,
1088 true,
1089 )
1090 });
1091 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1092 match &*METHOD {
1093 ::core::result::Result::Ok(mi) => *mi,
1094 ::core::result::Result::Err(e) => {
1095 panic!(
1096 "method lookup failed: {}
1097::{}
1098: {}
1099",
1100 <ScriptRuntimeException as ::unity::ClassIdentity>::NAME,
1101 "AccessInstanceMemberOnStatics",
1102 e
1103 )
1104 },
1105 }
1106 }
1107 }
1108}
1109
1110#[cfg(feature = "moon_sharp-interpreter-scriptruntimeexception")]
1111impl ScriptRuntimeException {
1112 #[doc = "`ArithmeticOnNonNumber(crate::moon_sharp::interpreter::dynvalue::DynValue, crate::moon_sharp::interpreter::dynvalue::DynValue)` overload"]
1113 pub fn arithmetic_on_non_number(
1114 l: impl ::core::convert::Into<crate::moon_sharp::interpreter::dynvalue::DynValue>,
1115 r: impl ::core::convert::Into<crate::moon_sharp::interpreter::dynvalue::DynValue>,
1116 ) -> crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException {
1117 unsafe {
1118 ::unity::il2cpp_call!(__ScriptRuntimeException_unity_raw::__lookup_arithmetic_on_non_number::get_method_info().method_ptr,crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException;
1119(crate::moon_sharp::interpreter::dynvalue::DynValue)::core::convert::Into::into(l),(crate::moon_sharp::interpreter::dynvalue::DynValue)::core::convert::Into::into(r))
1120 }
1121 }
1122
1123 #[doc = "`ConcatOnNonString(crate::moon_sharp::interpreter::dynvalue::DynValue, crate::moon_sharp::interpreter::dynvalue::DynValue)` overload"]
1124 pub fn concat_on_non_string(
1125 l: impl ::core::convert::Into<crate::moon_sharp::interpreter::dynvalue::DynValue>,
1126 r: impl ::core::convert::Into<crate::moon_sharp::interpreter::dynvalue::DynValue>,
1127 ) -> crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException {
1128 unsafe {
1129 ::unity::il2cpp_call!(__ScriptRuntimeException_unity_raw::__lookup_concat_on_non_string::get_method_info().method_ptr,crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException;
1130(crate::moon_sharp::interpreter::dynvalue::DynValue)::core::convert::Into::into(l),(crate::moon_sharp::interpreter::dynvalue::DynValue)::core::convert::Into::into(r))
1131 }
1132 }
1133
1134 #[doc = "`LenOnInvalidType(crate::moon_sharp::interpreter::dynvalue::DynValue)` overload"]
1135 pub fn len_on_invalid_type(
1136 r: impl ::core::convert::Into<crate::moon_sharp::interpreter::dynvalue::DynValue>,
1137 ) -> crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException {
1138 unsafe {
1139 ::unity::il2cpp_call!(__ScriptRuntimeException_unity_raw::__lookup_len_on_invalid_type::get_method_info().method_ptr,crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException;
1140(crate::moon_sharp::interpreter::dynvalue::DynValue)::core::convert::Into::into(r))
1141 }
1142 }
1143
1144 #[doc = "`CompareInvalidType(crate::moon_sharp::interpreter::dynvalue::DynValue, crate::moon_sharp::interpreter::dynvalue::DynValue)` overload"]
1145 pub fn compare_invalid_type(
1146 l: impl ::core::convert::Into<crate::moon_sharp::interpreter::dynvalue::DynValue>,
1147 r: impl ::core::convert::Into<crate::moon_sharp::interpreter::dynvalue::DynValue>,
1148 ) -> crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException {
1149 unsafe {
1150 ::unity::il2cpp_call!(__ScriptRuntimeException_unity_raw::__lookup_compare_invalid_type::get_method_info().method_ptr,crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException;
1151(crate::moon_sharp::interpreter::dynvalue::DynValue)::core::convert::Into::into(l),(crate::moon_sharp::interpreter::dynvalue::DynValue)::core::convert::Into::into(r))
1152 }
1153 }
1154
1155 #[doc = "`BadArgument(i32, ::unity::Il2CppString, ::unity::Il2CppString)` overload"]
1156 pub fn bad_argument(
1157 arg_num: impl ::core::convert::Into<i32>,
1158 func_name: impl ::core::convert::Into<::unity::Il2CppString>,
1159 message: impl ::core::convert::Into<::unity::Il2CppString>,
1160 ) -> crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException {
1161 unsafe {
1162 ::unity::il2cpp_call!(__ScriptRuntimeException_unity_raw::__lookup_bad_argument::get_method_info().method_ptr,crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException;
1163(i32)::core::convert::Into::into(arg_num),(::unity::Il2CppString)::core::convert::Into::into(func_name),(::unity::Il2CppString)::core::convert::Into::into(message))
1164 }
1165 }
1166
1167 #[doc = "`BadArgumentUserData(i32, ::unity::Il2CppString, ::unity::SystemType, crate::system::object::Object, bool)` overload"]
1168 pub fn bad_argument_user_data(
1169 arg_num: impl ::core::convert::Into<i32>,
1170 func_name: impl ::core::convert::Into<::unity::Il2CppString>,
1171 expected: impl ::core::convert::Into<::unity::SystemType>,
1172 got: impl ::core::convert::Into<crate::system::object::Object>,
1173 allow_nil: impl ::core::convert::Into<bool>,
1174 ) -> crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException {
1175 unsafe {
1176 ::unity::il2cpp_call!(__ScriptRuntimeException_unity_raw::__lookup_bad_argument_user_data::get_method_info().method_ptr,crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException;
1177(i32)::core::convert::Into::into(arg_num),(::unity::Il2CppString)::core::convert::Into::into(func_name),(::unity::SystemType)::core::convert::Into::into(expected),(crate::system::object::Object)::core::convert::Into::into(got),(bool)::core::convert::Into::into(allow_nil))
1178 }
1179 }
1180
1181 #[doc = "`BadArgument(i32, ::unity::Il2CppString, crate::moon_sharp::interpreter::datatype::DataType, crate::moon_sharp::interpreter::datatype::DataType, bool)` overload"]
1182 pub fn bad_argument_2(
1183 arg_num: impl ::core::convert::Into<i32>,
1184 func_name: impl ::core::convert::Into<::unity::Il2CppString>,
1185 expected: impl ::core::convert::Into<crate::moon_sharp::interpreter::datatype::DataType>,
1186 got: impl ::core::convert::Into<crate::moon_sharp::interpreter::datatype::DataType>,
1187 allow_nil: impl ::core::convert::Into<bool>,
1188 ) -> crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException {
1189 unsafe {
1190 ::unity::il2cpp_call!(__ScriptRuntimeException_unity_raw::__lookup_bad_argument_2::get_method_info().method_ptr,crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException;
1191(i32)::core::convert::Into::into(arg_num),(::unity::Il2CppString)::core::convert::Into::into(func_name),(crate::moon_sharp::interpreter::datatype::DataType)::core::convert::Into::into(expected),(crate::moon_sharp::interpreter::datatype::DataType)::core::convert::Into::into(got),(bool)::core::convert::Into::into(allow_nil))
1192 }
1193 }
1194
1195 #[doc = "`BadArgument(i32, ::unity::Il2CppString, ::unity::Il2CppString, ::unity::Il2CppString, bool)` overload"]
1196 pub fn bad_argument_3(
1197 arg_num: impl ::core::convert::Into<i32>,
1198 func_name: impl ::core::convert::Into<::unity::Il2CppString>,
1199 expected: impl ::core::convert::Into<::unity::Il2CppString>,
1200 got: impl ::core::convert::Into<::unity::Il2CppString>,
1201 allow_nil: impl ::core::convert::Into<bool>,
1202 ) -> crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException {
1203 unsafe {
1204 ::unity::il2cpp_call!(__ScriptRuntimeException_unity_raw::__lookup_bad_argument_3::get_method_info().method_ptr,crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException;
1205(i32)::core::convert::Into::into(arg_num),(::unity::Il2CppString)::core::convert::Into::into(func_name),(::unity::Il2CppString)::core::convert::Into::into(expected),(::unity::Il2CppString)::core::convert::Into::into(got),(bool)::core::convert::Into::into(allow_nil))
1206 }
1207 }
1208
1209 #[doc = "`BadArgumentNoValue(i32, ::unity::Il2CppString, crate::moon_sharp::interpreter::datatype::DataType)` overload"]
1210 pub fn bad_argument_no_value(
1211 arg_num: impl ::core::convert::Into<i32>,
1212 func_name: impl ::core::convert::Into<::unity::Il2CppString>,
1213 expected: impl ::core::convert::Into<crate::moon_sharp::interpreter::datatype::DataType>,
1214 ) -> crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException {
1215 unsafe {
1216 ::unity::il2cpp_call!(__ScriptRuntimeException_unity_raw::__lookup_bad_argument_no_value::get_method_info().method_ptr,crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException;
1217(i32)::core::convert::Into::into(arg_num),(::unity::Il2CppString)::core::convert::Into::into(func_name),(crate::moon_sharp::interpreter::datatype::DataType)::core::convert::Into::into(expected))
1218 }
1219 }
1220
1221 #[doc = "`BadArgumentIndexOutOfRange(::unity::Il2CppString, i32)` overload"]
1222 pub fn bad_argument_index_out_of_range(
1223 func_name: impl ::core::convert::Into<::unity::Il2CppString>,
1224 arg_num: impl ::core::convert::Into<i32>,
1225 ) -> crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException {
1226 unsafe {
1227 ::unity::il2cpp_call!(__ScriptRuntimeException_unity_raw::__lookup_bad_argument_index_out_of_range::get_method_info().method_ptr,crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException;
1228(::unity::Il2CppString)::core::convert::Into::into(func_name),(i32)::core::convert::Into::into(arg_num))
1229 }
1230 }
1231
1232 #[doc = "`BadArgumentNoNegativeNumbers(i32, ::unity::Il2CppString)` overload"]
1233 pub fn bad_argument_no_negative_numbers(
1234 arg_num: impl ::core::convert::Into<i32>,
1235 func_name: impl ::core::convert::Into<::unity::Il2CppString>,
1236 ) -> crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException {
1237 unsafe {
1238 ::unity::il2cpp_call!(__ScriptRuntimeException_unity_raw::__lookup_bad_argument_no_negative_numbers::get_method_info().method_ptr,crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException;
1239(i32)::core::convert::Into::into(arg_num),(::unity::Il2CppString)::core::convert::Into::into(func_name))
1240 }
1241 }
1242
1243 #[doc = "`BadArgumentValueExpected(i32, ::unity::Il2CppString)` overload"]
1244 pub fn bad_argument_value_expected(
1245 arg_num: impl ::core::convert::Into<i32>,
1246 func_name: impl ::core::convert::Into<::unity::Il2CppString>,
1247 ) -> crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException {
1248 unsafe {
1249 ::unity::il2cpp_call!(__ScriptRuntimeException_unity_raw::__lookup_bad_argument_value_expected::get_method_info().method_ptr,crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException;
1250(i32)::core::convert::Into::into(arg_num),(::unity::Il2CppString)::core::convert::Into::into(func_name))
1251 }
1252 }
1253
1254 #[doc = "`IndexType(crate::moon_sharp::interpreter::dynvalue::DynValue)` overload"]
1255 pub fn index_type(
1256 obj: impl ::core::convert::Into<crate::moon_sharp::interpreter::dynvalue::DynValue>,
1257 ) -> crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException {
1258 unsafe {
1259 ::unity::il2cpp_call!(__ScriptRuntimeException_unity_raw::__lookup_index_type::get_method_info().method_ptr,crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException;
1260(crate::moon_sharp::interpreter::dynvalue::DynValue)::core::convert::Into::into(obj))
1261 }
1262 }
1263
1264 #[doc = "`LoopInIndex()` overload"]
1265 pub fn loop_in_index() -> crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException {
1266 unsafe {
1267 ::unity::il2cpp_call!(__ScriptRuntimeException_unity_raw::__lookup_loop_in_index::get_method_info().method_ptr,crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException;
1268 )
1269 }
1270 }
1271
1272 #[doc = "`LoopInNewIndex()` overload"]
1273 pub fn loop_in_new_index() -> crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException {
1274 unsafe {
1275 ::unity::il2cpp_call!(__ScriptRuntimeException_unity_raw::__lookup_loop_in_new_index::get_method_info().method_ptr,crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException;
1276 )
1277 }
1278 }
1279
1280 #[doc = "`LoopInCall()` overload"]
1281 pub fn loop_in_call() -> crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException {
1282 unsafe {
1283 ::unity::il2cpp_call!(__ScriptRuntimeException_unity_raw::__lookup_loop_in_call::get_method_info().method_ptr,crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException;
1284 )
1285 }
1286 }
1287
1288 #[doc = "`TableIndexIsNil()` overload"]
1289 pub fn table_index_is_nil() -> crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException {
1290 unsafe {
1291 ::unity::il2cpp_call!(__ScriptRuntimeException_unity_raw::__lookup_table_index_is_nil::get_method_info().method_ptr,crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException;
1292 )
1293 }
1294 }
1295
1296 #[doc = "`TableIndexIsNaN()` overload"]
1297 pub fn table_index_is_na_n() -> crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException {
1298 unsafe {
1299 ::unity::il2cpp_call!(__ScriptRuntimeException_unity_raw::__lookup_table_index_is_na_n::get_method_info().method_ptr,crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException;
1300 )
1301 }
1302 }
1303
1304 #[doc = "`ConvertToNumberFailed(i32)` overload"]
1305 pub fn convert_to_number_failed(
1306 stage: impl ::core::convert::Into<i32>,
1307 ) -> crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException {
1308 unsafe {
1309 ::unity::il2cpp_call!(__ScriptRuntimeException_unity_raw::__lookup_convert_to_number_failed::get_method_info().method_ptr,crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException;
1310(i32)::core::convert::Into::into(stage))
1311 }
1312 }
1313
1314 #[doc = "`ConvertObjectFailed(crate::system::object::Object)` overload"]
1315 pub fn convert_object_failed(
1316 obj: impl ::core::convert::Into<crate::system::object::Object>,
1317 ) -> crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException {
1318 unsafe {
1319 ::unity::il2cpp_call!(__ScriptRuntimeException_unity_raw::__lookup_convert_object_failed::get_method_info().method_ptr,crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException;
1320(crate::system::object::Object)::core::convert::Into::into(obj))
1321 }
1322 }
1323
1324 #[doc = "`ConvertObjectFailed(crate::moon_sharp::interpreter::datatype::DataType)` overload"]
1325 pub fn convert_object_failed_2(
1326 t: impl ::core::convert::Into<crate::moon_sharp::interpreter::datatype::DataType>,
1327 ) -> crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException {
1328 unsafe {
1329 ::unity::il2cpp_call!(__ScriptRuntimeException_unity_raw::__lookup_convert_object_failed_2::get_method_info().method_ptr,crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException;
1330(crate::moon_sharp::interpreter::datatype::DataType)::core::convert::Into::into(t))
1331 }
1332 }
1333
1334 #[doc = "`ConvertObjectFailed(crate::moon_sharp::interpreter::datatype::DataType, ::unity::SystemType)` overload"]
1335 pub fn convert_object_failed_3(
1336 t: impl ::core::convert::Into<crate::moon_sharp::interpreter::datatype::DataType>,
1337 t2: impl ::core::convert::Into<::unity::SystemType>,
1338 ) -> crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException {
1339 unsafe {
1340 ::unity::il2cpp_call!(__ScriptRuntimeException_unity_raw::__lookup_convert_object_failed_3::get_method_info().method_ptr,crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException;
1341(crate::moon_sharp::interpreter::datatype::DataType)::core::convert::Into::into(t),(::unity::SystemType)::core::convert::Into::into(t2))
1342 }
1343 }
1344
1345 #[doc = "`UserDataArgumentTypeMismatch(crate::moon_sharp::interpreter::datatype::DataType, ::unity::SystemType)` overload"]
1346 pub fn user_data_argument_type_mismatch(
1347 t: impl ::core::convert::Into<crate::moon_sharp::interpreter::datatype::DataType>,
1348 clr_type: impl ::core::convert::Into<::unity::SystemType>,
1349 ) -> crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException {
1350 unsafe {
1351 ::unity::il2cpp_call!(__ScriptRuntimeException_unity_raw::__lookup_user_data_argument_type_mismatch::get_method_info().method_ptr,crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException;
1352(crate::moon_sharp::interpreter::datatype::DataType)::core::convert::Into::into(t),(::unity::SystemType)::core::convert::Into::into(clr_type))
1353 }
1354 }
1355
1356 #[doc = "`UserDataMissingField(::unity::Il2CppString, ::unity::Il2CppString)` overload"]
1357 pub fn user_data_missing_field(
1358 typename: impl ::core::convert::Into<::unity::Il2CppString>,
1359 fieldname: impl ::core::convert::Into<::unity::Il2CppString>,
1360 ) -> crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException {
1361 unsafe {
1362 ::unity::il2cpp_call!(__ScriptRuntimeException_unity_raw::__lookup_user_data_missing_field::get_method_info().method_ptr,crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException;
1363(::unity::Il2CppString)::core::convert::Into::into(typename),(::unity::Il2CppString)::core::convert::Into::into(fieldname))
1364 }
1365 }
1366
1367 #[doc = "`CannotResumeNotSuspended(crate::moon_sharp::interpreter::coroutinestate::CoroutineState)` overload"]
1368 pub fn cannot_resume_not_suspended(
1369 state: impl ::core::convert::Into<crate::moon_sharp::interpreter::coroutinestate::CoroutineState>,
1370 ) -> crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException {
1371 unsafe {
1372 ::unity::il2cpp_call!(__ScriptRuntimeException_unity_raw::__lookup_cannot_resume_not_suspended::get_method_info().method_ptr,crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException;
1373(crate::moon_sharp::interpreter::coroutinestate::CoroutineState)::core::convert::Into::into(state))
1374 }
1375 }
1376
1377 #[doc = "`CannotYield()` overload"]
1378 pub fn cannot_yield() -> crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException {
1379 unsafe {
1380 ::unity::il2cpp_call!(__ScriptRuntimeException_unity_raw::__lookup_cannot_yield::get_method_info().method_ptr,crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException;
1381 )
1382 }
1383 }
1384
1385 #[doc = "`CannotYieldMain()` overload"]
1386 pub fn cannot_yield_main() -> crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException {
1387 unsafe {
1388 ::unity::il2cpp_call!(__ScriptRuntimeException_unity_raw::__lookup_cannot_yield_main::get_method_info().method_ptr,crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException;
1389 )
1390 }
1391 }
1392
1393 #[doc = "`AttemptToCallNonFunc(crate::moon_sharp::interpreter::datatype::DataType, ::unity::Il2CppString)` overload"]
1394 pub fn attempt_to_call_non_func(
1395 r#type: impl ::core::convert::Into<crate::moon_sharp::interpreter::datatype::DataType>,
1396 debug_text: impl ::core::convert::Into<::unity::Il2CppString>,
1397 ) -> crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException {
1398 unsafe {
1399 ::unity::il2cpp_call!(__ScriptRuntimeException_unity_raw::__lookup_attempt_to_call_non_func::get_method_info().method_ptr,crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException;
1400(crate::moon_sharp::interpreter::datatype::DataType)::core::convert::Into::into(r#type),(::unity::Il2CppString)::core::convert::Into::into(debug_text))
1401 }
1402 }
1403
1404 #[doc = "`AccessInstanceMemberOnStatics(crate::moon_sharp::interpreter::interop::basic_descriptors::imemberdescriptor_interface::IMemberDescriptor_Interface)` overload"]
1405 pub fn access_instance_member_on_statics(
1406 desc: impl ::core::convert::Into<
1407 crate::moon_sharp::interpreter::interop::basic_descriptors::imemberdescriptor_interface::IMemberDescriptor_Interface,
1408 >,
1409 ) -> crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException {
1410 unsafe {
1411 ::unity::il2cpp_call!(__ScriptRuntimeException_unity_raw::__lookup_access_instance_member_on_statics::get_method_info().method_ptr,crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException;
1412(crate::moon_sharp::interpreter::interop::basic_descriptors::imemberdescriptor_interface::IMemberDescriptor_Interface)::core::convert::Into::into(desc))
1413 }
1414 }
1415
1416 #[doc = "`AccessInstanceMemberOnStatics(crate::moon_sharp::interpreter::interop::iuserdatadescriptor::IUserDataDescriptor, crate::moon_sharp::interpreter::interop::basic_descriptors::imemberdescriptor_interface::IMemberDescriptor_Interface)` overload"]
1417 pub fn access_instance_member_on_statics_2(
1418 type_descr: impl ::core::convert::Into<crate::moon_sharp::interpreter::interop::iuserdatadescriptor::IUserDataDescriptor>,
1419 desc: impl ::core::convert::Into<
1420 crate::moon_sharp::interpreter::interop::basic_descriptors::imemberdescriptor_interface::IMemberDescriptor_Interface,
1421 >,
1422 ) -> crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException {
1423 unsafe {
1424 ::unity::il2cpp_call!(__ScriptRuntimeException_unity_raw::__lookup_access_instance_member_on_statics_2::get_method_info().method_ptr,crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException;
1425(crate::moon_sharp::interpreter::interop::iuserdatadescriptor::IUserDataDescriptor)::core::convert::Into::into(type_descr),(crate::moon_sharp::interpreter::interop::basic_descriptors::imemberdescriptor_interface::IMemberDescriptor_Interface)::core::convert::Into::into(desc))
1426 }
1427 }
1428}
1429
1430#[cfg(feature = "moon_sharp-interpreter-scriptruntimeexception")]
1431pub trait IScriptRuntimeExceptionMethods: IScriptRuntimeException {
1432 #[doc = "`.ctor(crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException)` overload"]
1433 fn ctor(self, ex: impl ::core::convert::Into<crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException>) -> () {
1434 unsafe {
1435 let __receiver =
1436 <ScriptRuntimeException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1437 ::unity::il2cpp_call!(__ScriptRuntimeException_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
1438(ScriptRuntimeException)__receiver,(crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException)::core::convert::Into::into(ex))
1439 }
1440 }
1441 #[doc = "`.ctor(::unity::Il2CppString)` overload"]
1442 fn ctor_2(self, message: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
1443 unsafe {
1444 let __receiver =
1445 <ScriptRuntimeException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1446 ::unity::il2cpp_call!(__ScriptRuntimeException_unity_raw::__lookup_ctor_2::get_method_info().method_ptr,();
1447(ScriptRuntimeException)__receiver,(::unity::Il2CppString)::core::convert::Into::into(message))
1448 }
1449 }
1450 #[doc = "`.ctor(::unity::Il2CppString, ::unity::Array<crate::system::object::Object>)` overload"]
1451 fn ctor_3(
1452 self,
1453 format: impl ::core::convert::Into<::unity::Il2CppString>,
1454 args: impl ::core::convert::Into<::unity::Array<crate::system::object::Object>>,
1455 ) -> () {
1456 unsafe {
1457 let __receiver =
1458 <ScriptRuntimeException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1459 ::unity::il2cpp_call!(__ScriptRuntimeException_unity_raw::__lookup_ctor_3::get_method_info().method_ptr,();
1460(ScriptRuntimeException)__receiver,(::unity::Il2CppString)::core::convert::Into::into(format),(::unity::Array<crate::system::object::Object>)::core::convert::Into::into(args))
1461 }
1462 }
1463 #[doc = "`Rethrow()` overload"]
1464 fn rethrow(self) -> () {
1465 unsafe {
1466 let __receiver =
1467 <ScriptRuntimeException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1468 {
1469 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
1470 let __vi = *__vt.get(18usize).unwrap_or_else(|| {
1471 panic!(
1472 "unity: virtual slot {}
1473 out of range (vtable len {}
1474) on the runtime class behind {}
1475 (method `{}
1476`)",
1477 18usize,
1478 __vt.len(),
1479 <ScriptRuntimeException as ::unity::ClassIdentity>::NAME,
1480 "Rethrow",
1481 )
1482 });
1483 let __inner: extern "C" fn(ScriptRuntimeException, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
1484 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
1485 __inner(__receiver, __mi)
1486 }
1487 }
1488 }
1489}
1490
1491#[cfg(feature = "moon_sharp-interpreter-scriptruntimeexception")]
1492impl<__T: IScriptRuntimeException> IScriptRuntimeExceptionMethods for __T {}
1493
1494#[cfg(feature = "moon_sharp-interpreter-scriptruntimeexception")]
1495impl ScriptRuntimeException {
1496 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1497 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
1498 }
1499
1500 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1501 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
1502 }
1503
1504 pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1505 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
1506 }
1507
1508 pub fn arithmetic_on_non_number_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1509 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
1510 }
1511
1512 pub fn concat_on_non_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1513 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
1514 }
1515
1516 pub fn len_on_invalid_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1517 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
1518 }
1519
1520 pub fn compare_invalid_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1521 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
1522 }
1523
1524 pub fn bad_argument_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1525 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
1526 }
1527
1528 pub fn bad_argument_user_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1529 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
1530 }
1531
1532 pub fn bad_argument_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1533 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
1534 }
1535
1536 pub fn bad_argument_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1537 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
1538 }
1539
1540 pub fn bad_argument_no_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1541 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
1542 }
1543
1544 pub fn bad_argument_index_out_of_range_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1545 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
1546 }
1547
1548 pub fn bad_argument_no_negative_numbers_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1549 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
1550 }
1551
1552 pub fn bad_argument_value_expected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1553 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
1554 }
1555
1556 pub fn index_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1557 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
1558 }
1559
1560 pub fn loop_in_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1561 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
1562 }
1563
1564 pub fn loop_in_new_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1565 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
1566 }
1567
1568 pub fn loop_in_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1569 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
1570 }
1571
1572 pub fn table_index_is_nil_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1573 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
1574 }
1575
1576 pub fn table_index_is_na_n_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1577 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
1578 }
1579
1580 pub fn convert_to_number_failed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1581 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
1582 }
1583
1584 pub fn convert_object_failed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1585 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
1586 }
1587
1588 pub fn convert_object_failed_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1589 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
1590 }
1591
1592 pub fn convert_object_failed_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1593 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
1594 }
1595
1596 pub fn user_data_argument_type_mismatch_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1597 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
1598 }
1599
1600 pub fn user_data_missing_field_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1601 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
1602 }
1603
1604 pub fn cannot_resume_not_suspended_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1605 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
1606 }
1607
1608 pub fn cannot_yield_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1609 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
1610 }
1611
1612 pub fn cannot_yield_main_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1613 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
1614 }
1615
1616 pub fn attempt_to_call_non_func_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1617 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[31]
1618 }
1619
1620 pub fn access_instance_member_on_statics_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1621 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[32]
1622 }
1623
1624 pub fn access_instance_member_on_statics_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1625 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[33]
1626 }
1627
1628 pub fn rethrow_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1629 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[34]
1630 }
1631}
1632
1633#[cfg(feature = "moon_sharp-interpreter-scriptruntimeexception")]
1634impl ScriptRuntimeException {
1635 #[doc = "Direct (non-virtual) call to `ScriptRuntimeException`'s own `Rethrow`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1636 pub unsafe fn rethrow(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1637 let __mi = Self::rethrow_method_info();
1638 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1639 __inner(this.into(), ::core::option::Option::None)
1640 }
1641}
1642
1643#[cfg(feature = "moon_sharp-interpreter-scriptruntimeexception")]
1644impl ScriptRuntimeException {
1645 #[doc = "`.ctor(crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException)` — overload selector"]
1646 pub fn new(ex: crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException) -> Self {
1647 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1648 panic!(
1649 "{}
1650::{}
1651 failed to instantiate",
1652 ::core::stringify!(ScriptRuntimeException),
1653 ::core::stringify!(new),
1654 )
1655 });
1656 <Self as IScriptRuntimeExceptionMethods>::ctor(this, ex);
1657 this
1658 }
1659
1660 #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
1661 pub fn new_2(message: ::unity::Il2CppString) -> Self {
1662 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1663 panic!(
1664 "{}
1665::{}
1666 failed to instantiate",
1667 ::core::stringify!(ScriptRuntimeException),
1668 ::core::stringify!(new_2),
1669 )
1670 });
1671 <Self as IScriptRuntimeExceptionMethods>::ctor_2(this, message);
1672 this
1673 }
1674
1675 #[doc = "`.ctor(::unity::Il2CppString, ::unity::Array<crate::system::object::Object>)` — overload selector"]
1676 pub fn new_3(format: ::unity::Il2CppString, args: ::unity::Array<crate::system::object::Object>) -> Self {
1677 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1678 panic!(
1679 "{}
1680::{}
1681 failed to instantiate",
1682 ::core::stringify!(ScriptRuntimeException),
1683 ::core::stringify!(new_3),
1684 )
1685 });
1686 <Self as IScriptRuntimeExceptionMethods>::ctor_3(this, format, args);
1687 this
1688 }
1689}
1690
1691#[cfg(feature = "moon_sharp-interpreter-scriptruntimeexception")]
1692#[doc(hidden)]
1693pub mod prelude {
1694 pub use super::{IScriptRuntimeException, IScriptRuntimeExceptionMethods, ScriptRuntimeException};
1695 #[cfg(feature = "moon_sharp-interpreter-interpreterexception")]
1696 pub use crate::moon_sharp::interpreter::interpreterexception::IInterpreterExceptionMethods;
1697 #[cfg(feature = "system-object")]
1698 pub use crate::system::object::IObjectMethods;
1699 pub use crate::{
1700 moon_sharp::interpreter::interpreterexception::{IInterpreterException, InterpreterException},
1701 system::object::IObject,
1702 };
1703}