Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
NotFiniteNumberException.cs
Go to the documentation of this file.
3
4namespace System;
5
7[TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
9{
10 private readonly double _offendingNumber;
11
13
15 : base(SR.Arg_NotFiniteNumberException)
16 {
17 _offendingNumber = 0.0;
18 base.HResult = -2146233048;
19 }
20
26
27 public NotFiniteNumberException(string? message)
28 : base(message)
29 {
30 _offendingNumber = 0.0;
31 base.HResult = -2146233048;
32 }
33
34 public NotFiniteNumberException(string? message, double offendingNumber)
35 : base(message)
36 {
38 base.HResult = -2146233048;
39 }
40
42 : base(message, innerException)
43 {
44 base.HResult = -2146233048;
45 }
46
48 : base(message, innerException)
49 {
51 base.HResult = -2146233048;
52 }
53
55 : base(info, context)
56 {
57 _offendingNumber = info.GetDouble("OffendingNumber");
58 }
59
61 {
62 base.GetObjectData(info, context);
63 info.AddValue("OffendingNumber", _offendingNumber, typeof(double));
64 }
65}
NotFiniteNumberException(string? message, double offendingNumber, Exception? innerException)
override void GetObjectData(SerializationInfo info, StreamingContext context)
NotFiniteNumberException(string? message, double offendingNumber)
NotFiniteNumberException(SerializationInfo info, StreamingContext context)
NotFiniteNumberException(double offendingNumber)
NotFiniteNumberException(string? message, Exception? innerException)
Definition SR.cs:7