Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
ObservableViewModelConsistencyException.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using System;
4 
5 namespace SiliconStudio.Presentation.Quantum
6 {
7  /// <summary>
8  /// An exception that occurs during consistency checks of ObservableViewModel nodes, indicating that an <see cref="ObservableNode"/> is un an unexpected state.
9  /// </summary>
11  {
12  /// <summary>
13  /// Initializes a new instance of the ObservableViewModelConsistencyException class.
14  /// </summary>
15  /// <param name="node">The node that is related to this error.</param>
16  /// <param name="messageFormat">A composite format string that describes the error.</param>
17  /// <param name="args">An object array that contains zero or more objects to format.</param>
18  public ObservableViewModelConsistencyException(ObservableNode node, string messageFormat, params object[] args)
19  : base(string.Format(messageFormat, args))
20  {
21  Node = node;
22 
23  }
24 
25  /// <summary>
26  /// Gets the <see cref="ObservableNode"/> that triggered this exception.
27  /// </summary>
28  public ObservableNode Node { get; private set; }
29  }
30 }
ObservableViewModelConsistencyException(ObservableNode node, string messageFormat, params object[] args)
Initializes a new instance of the ObservableViewModelConsistencyException class.
An exception that occurs during consistency checks of ObservableViewModel nodes, indicating that an O...