/// <summary> /// Create <see cref="TeamsJsonSerializationException"/>. /// </summary> /// <param name="operation">Operation type to serialize.</param> /// <param name="lineNumber">Line number the error occured.</param> /// <param name="linePosition">Position in the Line the error occured.</param> /// <param name="path">Path to the Json the error occured.</param> public TeamsJsonSerializationException(TeamsSerializationOperation operation, int lineNumber, int linePosition, string path) : base(String.Format(ResourceMessage.ErrorMessages.TeamsJsonSerializationError, operation, lineNumber, linePosition, path)) { this.LineNumber = lineNumber; this.LinePosition = linePosition; this.Path = path; this.Operation = operation; }
/// <summary> /// Create <see cref="TeamsJsonSerializationException"/>. /// </summary> /// <param name="operation">Operation type to serialize.</param> /// <param name="path">Path to the Json the error occured.</param> public TeamsJsonSerializationException(TeamsSerializationOperation operation, string path) : this(operation, 0, 0, path) { }