/// <summary> /// Initializes a new instance of the <see cref="T:Blueberry.XInput.XInputException"/> class. /// /// </summary> /// <param name="descriptor">The result descriptor.</param> public XInputException(ResultDescriptor descriptor) : base(descriptor.ToString()) { this.descriptor = descriptor; this.HResult = (int)descriptor.Result; }