﻿using System.IO;

namespace Microsoft.Diagnostics.Runtime
{
    /// <summary>
    /// Thrown when we fail to read memory from the target process.
    /// </summary>
    public class MemoryReadException : IOException
    {
        /// <summary>
        /// The address of memory that could not be read.
        /// </summary>
        public ulong Address { get; private set; }

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="address">The address of memory that could not be read.</param>
        public MemoryReadException(ulong address)
            : base(string.Format("Could not read memory at {0:x}."))
        {
        }
    }
}

﻿using System.IO;

namespace Microsoft.Diagnostics.Runtime
{
    /// <summary>
    /// Thrown when we fail to read memory from the target process.
    /// </summary>
    public class MemoryReadException : IOException
    {
        /// <summary>
        /// The address of memory that could not be read.
        /// </summary>
        public ulong Address { get; private set; }

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="address">The address of memory that could not be read.</param>
        public MemoryReadException(ulong address)
            : base(string.Format("Could not read memory at {0:x}.", address))
        {
        }
    }
}

Fix missing string format parameter
Fix missing string format parameter
