/// <summary> /// Creates an instance of <see cref="SupBaseException"/>. /// </summary> /// <param name="exceptionType"> /// The category of error that this exception represents. /// </param> /// <param name="message"> /// The error message that explains the reason for the exception. /// </param> /// <param name="innerException"> /// The exception that is the cause of the current exception. /// </param> public SupBaseException(EnumSupViewExceptionType exceptionType = EnumSupViewExceptionType.Normal, string message = null, Exception innerException = null) : base(message, innerException) { this.exceptionType = exceptionType; this.createDate = DateTime.UtcNow; }
protected SupBaseException(SerializationInfo info, StreamingContext context) : base(info, context) { this.exceptionType = (EnumSupViewExceptionType)info.GetInt32(ExceptionTypeField); this.createDate = new DateTime(info.GetInt64(CreatedDateField), DateTimeKind.Utc); }
/// <summary> /// Creates a instance of <see cref="SupDisplayException"/>. /// </summary> /// <param name="exceptionType"> /// The category of error that this exception represents. /// </param> /// <param name="message"> /// The message to display to the end user. /// </param> /// <param name="innerException"> /// The exception that is the cause of the current exception. /// </param> public SupDisplayException(EnumSupViewExceptionType exceptionType,string message,Exception innerException=null) : base(exceptionType,message,innerException) { }