📄 modelexception.cs
字号:
////////////////////////////////////////////////
//
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -