Represents a position within a plain text resource.
 /// <summary>
 /// Initializes a new instance of the <see cref="JsonParseException"/> class with the given message, error type, and position.
 /// </summary>
 /// <param name="message">The message that describes the error.</param>
 /// <param name="type">The error type that describes the cause of the error.</param>
 /// <param name="position">The position in the text where the error occurred.</param>
 public JsonParseException(string message, ErrorType type, TextPosition position)
     : base(message)
 {
     this.Type     = type;
     this.Position = position;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="JsonParseException"/> class with the given error type and position.
 /// </summary>
 /// <param name="type">The error type that describes the cause of the error.</param>
 /// <param name="position">The position in the text where the error occurred.</param>
 public JsonParseException(ErrorType type, TextPosition position)
     : this(GetDefaultMessage(type), type, position)
 {
 }