コード例 #1
0
ファイル: SharpDXException.cs プロジェクト: zmtzawqlp/SharpDX
 /// <summary>
 /// Initializes a new instance of the <see cref="T:SharpDX.SharpDXException"/> class.
 /// </summary>
 /// <param name="result">The error result code.</param>
 /// <param name="message">The message describing the exception.</param>
 /// <param name="args">formatting arguments</param>
 public SharpDXException(Result result, string message, params object[] args)
     : base(string.Format(CultureInfo.InvariantCulture, message, args))
 {
     this.descriptor = ResultDescriptor.Find(result);
     HResult         = (int)result;
 }
コード例 #2
0
ファイル: SharpDXException.cs プロジェクト: zmtzawqlp/SharpDX
 /// <summary>
 /// Initializes a new instance of the <see cref="T:SharpDX.SharpDXException"/> class.
 /// </summary>
 /// <param name="result">The error result code.</param>
 /// <param name="message">The message describing the exception.</param>
 public SharpDXException(Result result, string message)
     : base(message)
 {
     this.descriptor = ResultDescriptor.Find(result);
     HResult         = (int)result;
 }
コード例 #3
0
ファイル: SharpDXException.cs プロジェクト: zmtzawqlp/SharpDX
 /// <summary>
 ///   Initializes a new instance of the <see cref = "T:SharpDX.SharpDXException" /> class.
 /// </summary>
 public SharpDXException() : base("A SharpDX exception occurred.")
 {
     this.descriptor = ResultDescriptor.Find(Result.Fail);
     HResult         = (int)Result.Fail;
 }
コード例 #4
0
ファイル: SharpDXException.cs プロジェクト: zmtzawqlp/SharpDX
 /// <summary>
 ///   Initializes a new instance of the <see cref = "T:SharpDX.SharpDXException" /> class.
 /// </summary>
 /// <param name = "result">The result code that caused this exception.</param>
 public SharpDXException(Result result)
     : this(ResultDescriptor.Find(result))
 {
     HResult = (int)result;
 }
コード例 #5
0
ファイル: SharpDXException.cs プロジェクト: zmtzawqlp/SharpDX
 /// <summary>
 ///   Initializes a new instance of the <see cref = "T:SharpDX.SharpDXException" /> class.
 /// </summary>
 /// <param name = "message">The message describing the exception.</param>
 /// <param name = "innerException">The exception that caused this exception.</param>
 /// <param name="args">formatting arguments</param>
 public SharpDXException(string message, Exception innerException, params object[] args)
     : base(string.Format(CultureInfo.InvariantCulture, message, args), innerException)
 {
     this.descriptor = ResultDescriptor.Find(Result.Fail);
     HResult         = (int)Result.Fail;
 }