Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
LicenseException.cs
Go to the documentation of this file.
3
5
7[TypeForwardedFrom("System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
9{
10 private readonly object _instance;
11
12 public Type? LicensedType { get; }
13
15 : this(type, null, System.SR.Format(System.SR.LicExceptionTypeOnly, type?.FullName))
16 {
17 }
18
19 public LicenseException(Type? type, object? instance)
20 : this(type, null, System.SR.Format(System.SR.LicExceptionTypeAndInstance, type?.FullName, instance?.GetType().FullName))
21 {
22 }
23
24 public LicenseException(Type? type, object? instance, string? message)
25 : base(message)
26 {
28 _instance = instance;
29 base.HResult = -2146232063;
30 }
31
32 public LicenseException(Type? type, object? instance, string? message, Exception? innerException)
33 : base(message, innerException)
34 {
36 _instance = instance;
37 base.HResult = -2146232063;
38 }
39
41 : base(info, context)
42 {
43 }
44
46 {
47 base.GetObjectData(info, context);
48 info.AddValue("type", null);
49 info.AddValue("instance", _instance);
50 }
51}
override void GetObjectData(SerializationInfo info, StreamingContext context)
LicenseException(Type? type, object? instance)
LicenseException(SerializationInfo info, StreamingContext context)
LicenseException(Type? type, object? instance, string? message, Exception? innerException)
LicenseException(Type? type, object? instance, string? message)
new Type GetType()
Definition Exception.cs:437
Definition SR.cs:7