using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ReportLibrary { public class BusinessException : Exception { //创建一个包含错误消息的异常对象。 public BusinessException(string message) : base(message) { } //创建一个包含错误消息和内部异常对象的异常对象。 public BusinessException(string message, Exception innerException) : base(message, innerException) { } } }