modelexception.cs

来自「C#开发的运行于windows mobile PDA上的游戏」· CS 代码 · 共 56 行

CS
56
字号
////////////////////////////////////////////////
// 
// Project: Lines.NET
// Version: 1.1
// Author:  Vladimir L.
// 
// homepage: http://www.boomsoft.org
// e-mail:   support@boomsoft.org
// 
// Copyright (c) 2003-2004, Boomsoft.org
// 

using System;

namespace Lines.Core
{
	/// <summary>
	/// This exception is thrown when abnormal behaviour with game logic has occurred.
	/// </summary>
	/// <remarks>
	/// This exception implies a bug in the game logic and supposed to be caught on the 
	/// application level and displayed with a user friendly interface and query to 
	/// report this bug.
	/// </remarks>
	public class ModelException : System.Exception
	{
		/// <summary>
		/// Creates an instance of model exception.
		/// </summary>
		public ModelException()
			: base()
		{
		}

		/// <summary>
		/// Creates an instance of model exception with descriptive message.
		/// </summary>
		/// <param name="message">The description of exception.</param>
		public ModelException(String message)
			: base(message)
		{
		}

		/// <summary>
		/// Creates an instance of model exception with descriptive message and
		/// reference to the inner exception that caused this one.
		/// </summary>
		/// <param name="message">The description of exception.</param>
		/// <param name="innerException">The refference to the generating exception.</param>
		public ModelException(String message, Exception innerException)
			: base(message, innerException)
		{
		}
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?