exceptions.cs

来自「DocFlow展示了使用.NET开发平台结合Microsoft SQL Serv」· CS 代码 · 共 78 行

CS
78
字号
/* 
*  Copyright (c) 2002 FulcrumWeb. All rights reserved.
*/

using System;

namespace Bip.Components
{
	public class BipException : System.Exception
	{
		protected bool m_IsFatal = false;

		public bool IsFatal
		{
			get{ return m_IsFatal; }
		}

		public BipException()
		{
		}

		public BipException(string message)
			:base(message)
		{
			
		}

		public BipException(string message, bool isFatal)
			:base(message)
		{
			
			m_IsFatal = isFatal;
		}
	}
	
	public class BipGenericException : BipException
	{
		public BipGenericException(string message)
			: base(message, false)
		{
			
		}

	}

	public class BipFatalException : BipException
	{
		public BipFatalException()
			 : base("", true)
		{
			
		}

		public BipFatalException(string message)
			: base(message, true)
		{
		}
	}

	public class BipObjectNotFoundException : BipFatalException
	{
		public BipObjectNotFoundException()
			: base(BipResources.GetString("StrObjectNotFoundException"))
		{
		}
	}

	public class BipAccessDeniedException  : BipFatalException
	{
		public BipAccessDeniedException()
			: base(BipResources.GetString("StrAccessDeniedException"))
		{
		}
	}


}

⌨️ 快捷键说明

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