Skip to main content

engage/generated/moon_sharp/interpreter/
interpreterexception.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "moon_sharp-interpreter-interpreterexception-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8
9    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/moon_sharp/interpreter/interpreterexception/InterpreterException.md"))]
10    #[::unity::class(namespace = "MoonSharp.Interpreter", name = "InterpreterException")]
11    pub struct InterpreterException {}
12}
13
14#[cfg(feature = "moon_sharp-interpreter-interpreterexception-types")]
15pub use __types::*;
16
17#[cfg(feature = "moon_sharp-interpreter-interpreterexception")]
18#[doc(hidden)]
19#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
20mod __InterpreterException_unity_raw {
21    use super::*;
22    #[doc(hidden)]
23    #[allow(non_snake_case)]
24    pub mod __lookup_ctor {
25        use super::*;
26        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
27            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<::unity::Il2CppString as ::unity::IlType>::il_type()];
28            ::unity::lookup::method_info_on_class_with_signature(
29                <InterpreterException as ::unity::ClassIdentity>::class(),
30                ".ctor",
31                1,
32                param_types,
33                false,
34            )
35        });
36        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
37            match &*METHOD {
38                ::core::result::Result::Ok(mi) => *mi,
39                ::core::result::Result::Err(e) => {
40                    panic!(
41                        "method lookup failed: {}
42::{}
43: {}
44",
45                        <InterpreterException as ::unity::ClassIdentity>::NAME,
46                        ".ctor",
47                        e
48                    )
49                },
50            }
51        }
52    }
53    #[doc(hidden)]
54    #[allow(non_snake_case)]
55    pub mod __lookup_ctor_2 {
56        use super::*;
57        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
58            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
59                <::unity::Il2CppString as ::unity::IlType>::il_type(),
60                <::unity::Array<crate::system::object::Object> as ::unity::IlType>::il_type(),
61            ];
62            ::unity::lookup::method_info_on_class_with_signature(
63                <InterpreterException as ::unity::ClassIdentity>::class(),
64                ".ctor",
65                2,
66                param_types,
67                false,
68            )
69        });
70        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
71            match &*METHOD {
72                ::core::result::Result::Ok(mi) => *mi,
73                ::core::result::Result::Err(e) => {
74                    panic!(
75                        "method lookup failed: {}
76::{}
77: {}
78",
79                        <InterpreterException as ::unity::ClassIdentity>::NAME,
80                        ".ctor",
81                        e
82                    )
83                },
84            }
85        }
86    }
87    #[doc(hidden)]
88    #[allow(non_snake_case)]
89    pub mod __lookup_get_instruction_ptr {
90        use super::*;
91        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
92            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
93            ::unity::lookup::method_info_on_class_with_signature(
94                <InterpreterException as ::unity::ClassIdentity>::class(),
95                "get_InstructionPtr",
96                0,
97                param_types,
98                false,
99            )
100        });
101        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
102            match &*METHOD {
103                ::core::result::Result::Ok(mi) => *mi,
104                ::core::result::Result::Err(e) => {
105                    panic!(
106                        "method lookup failed: {}
107::{}
108: {}
109",
110                        <InterpreterException as ::unity::ClassIdentity>::NAME,
111                        "get_InstructionPtr",
112                        e
113                    )
114                },
115            }
116        }
117    }
118    #[doc(hidden)]
119    #[allow(non_snake_case)]
120    pub mod __lookup_set_instruction_ptr {
121        use super::*;
122        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
123            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<i32 as ::unity::IlType>::il_type()];
124            ::unity::lookup::method_info_on_class_with_signature(
125                <InterpreterException as ::unity::ClassIdentity>::class(),
126                "set_InstructionPtr",
127                1,
128                param_types,
129                false,
130            )
131        });
132        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
133            match &*METHOD {
134                ::core::result::Result::Ok(mi) => *mi,
135                ::core::result::Result::Err(e) => {
136                    panic!(
137                        "method lookup failed: {}
138::{}
139: {}
140",
141                        <InterpreterException as ::unity::ClassIdentity>::NAME,
142                        "set_InstructionPtr",
143                        e
144                    )
145                },
146            }
147        }
148    }
149    #[doc(hidden)]
150    #[allow(non_snake_case)]
151    pub mod __lookup_get_call_stack {
152        use super::*;
153        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
154            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
155            ::unity::lookup::method_info_on_class_with_signature(
156                <InterpreterException as ::unity::ClassIdentity>::class(),
157                "get_CallStack",
158                0,
159                param_types,
160                false,
161            )
162        });
163        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
164            match &*METHOD {
165                ::core::result::Result::Ok(mi) => *mi,
166                ::core::result::Result::Err(e) => {
167                    panic!(
168                        "method lookup failed: {}
169::{}
170: {}
171",
172                        <InterpreterException as ::unity::ClassIdentity>::NAME,
173                        "get_CallStack",
174                        e
175                    )
176                },
177            }
178        }
179    }
180    #[doc(hidden)]
181    #[allow(non_snake_case)]
182    pub mod __lookup_set_call_stack {
183        use super::*;
184        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
185            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<crate::system::collections::generic::ilist_1_interface::IList_1_Interface<
186                crate::moon_sharp::interpreter::debugging::watchitem::WatchItem,
187            > as ::unity::IlType>::il_type()];
188            ::unity::lookup::method_info_on_class_with_signature(
189                <InterpreterException as ::unity::ClassIdentity>::class(),
190                "set_CallStack",
191                1,
192                param_types,
193                false,
194            )
195        });
196        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
197            match &*METHOD {
198                ::core::result::Result::Ok(mi) => *mi,
199                ::core::result::Result::Err(e) => {
200                    panic!(
201                        "method lookup failed: {}
202::{}
203: {}
204",
205                        <InterpreterException as ::unity::ClassIdentity>::NAME,
206                        "set_CallStack",
207                        e
208                    )
209                },
210            }
211        }
212    }
213    #[doc(hidden)]
214    #[allow(non_snake_case)]
215    pub mod __lookup_get_decorated_message {
216        use super::*;
217        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
218            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
219            ::unity::lookup::method_info_on_class_with_signature(
220                <InterpreterException as ::unity::ClassIdentity>::class(),
221                "get_DecoratedMessage",
222                0,
223                param_types,
224                false,
225            )
226        });
227        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
228            match &*METHOD {
229                ::core::result::Result::Ok(mi) => *mi,
230                ::core::result::Result::Err(e) => {
231                    panic!(
232                        "method lookup failed: {}
233::{}
234: {}
235",
236                        <InterpreterException as ::unity::ClassIdentity>::NAME,
237                        "get_DecoratedMessage",
238                        e
239                    )
240                },
241            }
242        }
243    }
244    #[doc(hidden)]
245    #[allow(non_snake_case)]
246    pub mod __lookup_set_decorated_message {
247        use super::*;
248        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
249            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<::unity::Il2CppString as ::unity::IlType>::il_type()];
250            ::unity::lookup::method_info_on_class_with_signature(
251                <InterpreterException as ::unity::ClassIdentity>::class(),
252                "set_DecoratedMessage",
253                1,
254                param_types,
255                false,
256            )
257        });
258        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
259            match &*METHOD {
260                ::core::result::Result::Ok(mi) => *mi,
261                ::core::result::Result::Err(e) => {
262                    panic!(
263                        "method lookup failed: {}
264::{}
265: {}
266",
267                        <InterpreterException as ::unity::ClassIdentity>::NAME,
268                        "set_DecoratedMessage",
269                        e
270                    )
271                },
272            }
273        }
274    }
275    #[doc(hidden)]
276    #[allow(non_snake_case)]
277    pub mod __lookup_get_do_not_decorate_message {
278        use super::*;
279        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
280            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
281            ::unity::lookup::method_info_on_class_with_signature(
282                <InterpreterException as ::unity::ClassIdentity>::class(),
283                "get_DoNotDecorateMessage",
284                0,
285                param_types,
286                false,
287            )
288        });
289        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
290            match &*METHOD {
291                ::core::result::Result::Ok(mi) => *mi,
292                ::core::result::Result::Err(e) => {
293                    panic!(
294                        "method lookup failed: {}
295::{}
296: {}
297",
298                        <InterpreterException as ::unity::ClassIdentity>::NAME,
299                        "get_DoNotDecorateMessage",
300                        e
301                    )
302                },
303            }
304        }
305    }
306    #[doc(hidden)]
307    #[allow(non_snake_case)]
308    pub mod __lookup_set_do_not_decorate_message {
309        use super::*;
310        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
311            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<bool as ::unity::IlType>::il_type()];
312            ::unity::lookup::method_info_on_class_with_signature(
313                <InterpreterException as ::unity::ClassIdentity>::class(),
314                "set_DoNotDecorateMessage",
315                1,
316                param_types,
317                false,
318            )
319        });
320        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
321            match &*METHOD {
322                ::core::result::Result::Ok(mi) => *mi,
323                ::core::result::Result::Err(e) => {
324                    panic!(
325                        "method lookup failed: {}
326::{}
327: {}
328",
329                        <InterpreterException as ::unity::ClassIdentity>::NAME,
330                        "set_DoNotDecorateMessage",
331                        e
332                    )
333                },
334            }
335        }
336    }
337    #[doc(hidden)]
338    #[allow(non_snake_case)]
339    pub mod __lookup_decorate_message {
340        use super::*;
341        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
342            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
343                <crate::moon_sharp::interpreter::script::Script as ::unity::IlType>::il_type(),
344                <crate::moon_sharp::interpreter::debugging::sourceref::SourceRef as ::unity::IlType>::il_type(),
345                <i32 as ::unity::IlType>::il_type(),
346            ];
347            ::unity::lookup::method_info_on_class_with_signature(
348                <InterpreterException as ::unity::ClassIdentity>::class(),
349                "DecorateMessage",
350                3,
351                param_types,
352                false,
353            )
354        });
355        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
356            match &*METHOD {
357                ::core::result::Result::Ok(mi) => *mi,
358                ::core::result::Result::Err(e) => {
359                    panic!(
360                        "method lookup failed: {}
361::{}
362: {}
363",
364                        <InterpreterException as ::unity::ClassIdentity>::NAME,
365                        "DecorateMessage",
366                        e
367                    )
368                },
369            }
370        }
371    }
372}
373
374#[cfg(feature = "moon_sharp-interpreter-interpreterexception")]
375pub trait IInterpreterExceptionMethods: IInterpreterException {
376    #[doc = "`.ctor(::unity::Il2CppString)` overload"]
377    fn ctor(self, message: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
378        unsafe {
379            let __receiver = <InterpreterException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
380            ::unity::il2cpp_call!(__InterpreterException_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
381(InterpreterException)__receiver,(::unity::Il2CppString)::core::convert::Into::into(message))
382        }
383    }
384    #[doc = "`.ctor(::unity::Il2CppString, ::unity::Array<crate::system::object::Object>)` overload"]
385    fn ctor_2(
386        self,
387        format: impl ::core::convert::Into<::unity::Il2CppString>,
388        args: impl ::core::convert::Into<::unity::Array<crate::system::object::Object>>,
389    ) -> () {
390        unsafe {
391            let __receiver = <InterpreterException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
392            ::unity::il2cpp_call!(__InterpreterException_unity_raw::__lookup_ctor_2::get_method_info().method_ptr,();
393(InterpreterException)__receiver,(::unity::Il2CppString)::core::convert::Into::into(format),(::unity::Array<crate::system::object::Object>)::core::convert::Into::into(args))
394        }
395    }
396    #[doc = "`get_InstructionPtr()` overload"]
397    fn get_instruction_ptr(self) -> i32 {
398        unsafe {
399            let __receiver = <InterpreterException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
400            ::unity::il2cpp_call!(__InterpreterException_unity_raw::__lookup_get_instruction_ptr::get_method_info().method_ptr,i32;
401(InterpreterException)__receiver)
402        }
403    }
404    #[doc = "`set_InstructionPtr(i32)` overload"]
405    fn set_instruction_ptr(self, value: impl ::core::convert::Into<i32>) -> () {
406        unsafe {
407            let __receiver = <InterpreterException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
408            ::unity::il2cpp_call!(__InterpreterException_unity_raw::__lookup_set_instruction_ptr::get_method_info().method_ptr,();
409(InterpreterException)__receiver,(i32)::core::convert::Into::into(value))
410        }
411    }
412    #[doc = "`get_CallStack()` overload"]
413    fn get_call_stack(
414        self,
415    ) -> crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::moon_sharp::interpreter::debugging::watchitem::WatchItem>
416    {
417        unsafe {
418            let __receiver = <InterpreterException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
419            ::unity::il2cpp_call!(__InterpreterException_unity_raw::__lookup_get_call_stack::get_method_info().method_ptr,crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::moon_sharp::interpreter::debugging::watchitem::WatchItem> ;
420(InterpreterException)__receiver)
421        }
422    }
423    #[doc = "`set_CallStack(crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::moon_sharp::interpreter::debugging::watchitem::WatchItem>)` overload"]
424    fn set_call_stack(
425        self,
426        value: impl ::core::convert::Into<
427            crate::system::collections::generic::ilist_1_interface::IList_1_Interface<
428                crate::moon_sharp::interpreter::debugging::watchitem::WatchItem,
429            >,
430        >,
431    ) -> () {
432        unsafe {
433            let __receiver = <InterpreterException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
434            ::unity::il2cpp_call!(__InterpreterException_unity_raw::__lookup_set_call_stack::get_method_info().method_ptr,();
435(InterpreterException)__receiver,(crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::moon_sharp::interpreter::debugging::watchitem::WatchItem>)::core::convert::Into::into(value))
436        }
437    }
438    #[doc = "`get_DecoratedMessage()` overload"]
439    fn get_decorated_message(self) -> ::unity::Il2CppString {
440        unsafe {
441            let __receiver = <InterpreterException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
442            ::unity::il2cpp_call!(__InterpreterException_unity_raw::__lookup_get_decorated_message::get_method_info().method_ptr, ::unity::Il2CppString;
443(InterpreterException)__receiver)
444        }
445    }
446    #[doc = "`set_DecoratedMessage(::unity::Il2CppString)` overload"]
447    fn set_decorated_message(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
448        unsafe {
449            let __receiver = <InterpreterException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
450            ::unity::il2cpp_call!(__InterpreterException_unity_raw::__lookup_set_decorated_message::get_method_info().method_ptr,();
451(InterpreterException)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
452        }
453    }
454    #[doc = "`get_DoNotDecorateMessage()` overload"]
455    fn get_do_not_decorate_message(self) -> bool {
456        unsafe {
457            let __receiver = <InterpreterException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
458            ::unity::il2cpp_call!(__InterpreterException_unity_raw::__lookup_get_do_not_decorate_message::get_method_info().method_ptr,bool;
459(InterpreterException)__receiver)
460        }
461    }
462    #[doc = "`set_DoNotDecorateMessage(bool)` overload"]
463    fn set_do_not_decorate_message(self, value: impl ::core::convert::Into<bool>) -> () {
464        unsafe {
465            let __receiver = <InterpreterException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
466            ::unity::il2cpp_call!(__InterpreterException_unity_raw::__lookup_set_do_not_decorate_message::get_method_info().method_ptr,();
467(InterpreterException)__receiver,(bool)::core::convert::Into::into(value))
468        }
469    }
470    #[doc = "`DecorateMessage(crate::moon_sharp::interpreter::script::Script, crate::moon_sharp::interpreter::debugging::sourceref::SourceRef, i32)` overload"]
471    fn decorate_message(
472        self,
473        script: impl ::core::convert::Into<crate::moon_sharp::interpreter::script::Script>,
474        sref: impl ::core::convert::Into<crate::moon_sharp::interpreter::debugging::sourceref::SourceRef>,
475        ip: impl ::core::convert::Into<i32>,
476    ) -> () {
477        unsafe {
478            let __receiver = <InterpreterException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
479            ::unity::il2cpp_call!(__InterpreterException_unity_raw::__lookup_decorate_message::get_method_info().method_ptr,();
480(InterpreterException)__receiver,(crate::moon_sharp::interpreter::script::Script)::core::convert::Into::into(script),(crate::moon_sharp::interpreter::debugging::sourceref::SourceRef)::core::convert::Into::into(sref),(i32)::core::convert::Into::into(ip))
481        }
482    }
483    #[doc = "`Rethrow()` overload"]
484    fn rethrow(self) -> () {
485        unsafe {
486            let __receiver = <InterpreterException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
487            {
488                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
489                let __vi = *__vt.get(18usize).unwrap_or_else(|| {
490                    panic!(
491                        "unity: virtual slot {}
492 out of range (vtable len {}
493) on the runtime class behind {}
494 (method `{}
495`)",
496                        18usize,
497                        __vt.len(),
498                        <InterpreterException as ::unity::ClassIdentity>::NAME,
499                        "Rethrow",
500                    )
501                });
502                let __inner: extern "C" fn(InterpreterException, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
503                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
504                __inner(__receiver, __mi)
505            }
506        }
507    }
508}
509
510#[cfg(feature = "moon_sharp-interpreter-interpreterexception")]
511impl<__T: IInterpreterException> IInterpreterExceptionMethods for __T {}
512
513#[cfg(feature = "moon_sharp-interpreter-interpreterexception")]
514impl InterpreterException {
515    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
516        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
517    }
518
519    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
520        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
521    }
522
523    pub fn get_instruction_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
524        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
525    }
526
527    pub fn set_instruction_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
528        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
529    }
530
531    pub fn get_call_stack_method_info() -> &'static ::unity::il2cpp::MethodInfo {
532        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
533    }
534
535    pub fn set_call_stack_method_info() -> &'static ::unity::il2cpp::MethodInfo {
536        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
537    }
538
539    pub fn get_decorated_message_method_info() -> &'static ::unity::il2cpp::MethodInfo {
540        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
541    }
542
543    pub fn set_decorated_message_method_info() -> &'static ::unity::il2cpp::MethodInfo {
544        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
545    }
546
547    pub fn get_do_not_decorate_message_method_info() -> &'static ::unity::il2cpp::MethodInfo {
548        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
549    }
550
551    pub fn set_do_not_decorate_message_method_info() -> &'static ::unity::il2cpp::MethodInfo {
552        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
553    }
554
555    pub fn decorate_message_method_info() -> &'static ::unity::il2cpp::MethodInfo {
556        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
557    }
558
559    pub fn rethrow_method_info() -> &'static ::unity::il2cpp::MethodInfo {
560        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
561    }
562}
563
564#[cfg(feature = "moon_sharp-interpreter-interpreterexception")]
565impl InterpreterException {
566    #[doc = "Direct (non-virtual) call to `InterpreterException`'s own `Rethrow`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
567    pub unsafe fn rethrow(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
568        let __mi = Self::rethrow_method_info();
569        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
570        __inner(this.into(), ::core::option::Option::None)
571    }
572}
573
574#[cfg(feature = "moon_sharp-interpreter-interpreterexception")]
575impl InterpreterException {
576    #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
577    pub fn new(message: ::unity::Il2CppString) -> Self {
578        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
579            panic!(
580                "{}
581::{}
582 failed to instantiate",
583                ::core::stringify!(InterpreterException),
584                ::core::stringify!(new),
585            )
586        });
587        <Self as IInterpreterExceptionMethods>::ctor(this, message);
588        this
589    }
590
591    #[doc = "`.ctor(::unity::Il2CppString, ::unity::Array<crate::system::object::Object>)` — overload selector"]
592    pub fn new_2(format: ::unity::Il2CppString, args: ::unity::Array<crate::system::object::Object>) -> Self {
593        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
594            panic!(
595                "{}
596::{}
597 failed to instantiate",
598                ::core::stringify!(InterpreterException),
599                ::core::stringify!(new_2),
600            )
601        });
602        <Self as IInterpreterExceptionMethods>::ctor_2(this, format, args);
603        this
604    }
605}
606
607#[cfg(feature = "moon_sharp-interpreter-interpreterexception")]
608#[doc(hidden)]
609pub mod prelude {
610    pub use super::{IInterpreterException, IInterpreterExceptionMethods, InterpreterException};
611}