| 
    BGC Tools
    
   | 
 
The exception that is thrown when a JSON message cannot be parsed. More...


Public Types | |
| enum | ErrorType : int { ErrorType.Unknown = 0, ErrorType.IncompleteMessage, ErrorType.DuplicateObjectKeys, ErrorType.InvalidOrUnexpectedCharacter } | 
| Types of errors that can occur when parsing a JSON message. More... | |
Public Member Functions | |
| JsonParseException () | |
| Initializes a new instance of JsonParseException.  More... | |
| JsonParseException (ErrorType type, TextPosition position) | |
| Initializes a new instance of JsonParseException with the given error type and position.  More... | |
| JsonParseException (string message, ErrorType type, TextPosition position) | |
| Initializes a new instance of JsonParseException with the given message, error type, and position.  More... | |
Properties | |
| TextPosition | Position [get, private set] | 
| The text position where the error occurred. More... | |
| ErrorType | Type [get, private set] | 
| The type of error that caused the exception to be thrown. More... | |
Static Private Member Functions | |
| static string | GetDefaultMessage (ErrorType type) | 
The exception that is thrown when a JSON message cannot be parsed.
Definition at line 8 of file JsonParseException.cs.
      
  | 
  strong | 
Types of errors that can occur when parsing a JSON message.
| Enumerator | |
|---|---|
| Unknown | The cause of the error is unknown.  | 
| IncompleteMessage | The text ended before the message could be parsed.  | 
| DuplicateObjectKeys | A JsonObject contains more than one key with the same name.  | 
| InvalidOrUnexpectedCharacter | The parser encountered and invalid or unexpected character.  | 
Definition at line 62 of file JsonParseException.cs.
      
  | 
  inline | 
Initializes a new instance of JsonParseException.
Definition at line 19 of file JsonParseException.cs.
      
  | 
  inline | 
Initializes a new instance of JsonParseException with the given error type and position.
| type | The error type that describes the cause of the error. | 
| position | The position in the text where the error occurred. | 
Definition at line 27 of file JsonParseException.cs.
      
  | 
  inline | 
Initializes a new instance of JsonParseException with the given message, error type, and position.
| message | The message that describes the error. | 
| type | The error type that describes the cause of the error. | 
| position | The position in the text where the error occurred. | 
Definition at line 36 of file JsonParseException.cs.
      
  | 
  inlinestaticprivate | 
Definition at line 43 of file JsonParseException.cs.
      
  | 
  getprivate set | 
The text position where the error occurred.
Definition at line 11 of file JsonParseException.cs.
      
  | 
  getprivate set | 
The type of error that caused the exception to be thrown.
Definition at line 14 of file JsonParseException.cs.
Referenced by LightJson.Serialization.TextScanner.Assert().
 1.8.13