Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetFormatException() [3/3]

static FormatException System.Text.Json.ThrowHelper.GetFormatException ( NumericType numericType)
inlinestatic

Definition at line 528 of file ThrowHelper.cs.

529 {
530 string message = "";
531 switch (numericType)
532 {
533 case NumericType.Byte:
534 message = System.SR.FormatByte;
535 break;
536 case NumericType.SByte:
537 message = System.SR.FormatSByte;
538 break;
539 case NumericType.Int16:
540 message = System.SR.FormatInt16;
541 break;
542 case NumericType.Int32:
543 message = System.SR.FormatInt32;
544 break;
545 case NumericType.Int64:
546 message = System.SR.FormatInt64;
547 break;
548 case NumericType.UInt16:
549 message = System.SR.FormatUInt16;
550 break;
551 case NumericType.UInt32:
552 message = System.SR.FormatUInt32;
553 break;
554 case NumericType.UInt64:
555 message = System.SR.FormatUInt64;
556 break;
557 case NumericType.Single:
558 message = System.SR.FormatSingle;
559 break;
560 case NumericType.Double:
561 message = System.SR.FormatDouble;
562 break;
563 case NumericType.Decimal:
564 message = System.SR.FormatDecimal;
565 break;
566 }
567 FormatException ex = new FormatException(message);
568 ex.Source = "System.Text.Json.Rethrowable";
569 return ex;
570 }
static string FormatUInt32
Definition SR.cs:114
static string FormatInt16
Definition SR.cs:204
static string FormatSingle
Definition SR.cs:112
static string FormatDecimal
Definition SR.cs:104
static string FormatByte
Definition SR.cs:202
static string FormatUInt64
Definition SR.cs:116
static string FormatDouble
Definition SR.cs:106
static string FormatUInt16
Definition SR.cs:208
static string FormatSByte
Definition SR.cs:206
static string FormatInt32
Definition SR.cs:108
static string FormatInt64
Definition SR.cs:110
Definition SR.cs:7

References System.Text.Json.Dictionary, System.SR.FormatByte, System.SR.FormatDecimal, System.SR.FormatDouble, System.SR.FormatInt16, System.SR.FormatInt32, System.SR.FormatInt64, System.SR.FormatSByte, System.SR.FormatSingle, System.SR.FormatUInt16, System.SR.FormatUInt32, and System.SR.FormatUInt64.