/// <summary> /// Initializes a new instance of the <see cref="UnhandledException"/> class with the specified inner exception /// that is the cause of this exception. /// </summary> /// <param name="innerException">The exception that is the cause of the current exception.</param> /// <param name="encrypted">Optional. A collection of type <see cref="Tags"/> that contains additional data /// about the exception, which must be encrypted when stored.</param> /// <param name="unencrypted">Optional. A collection of type <see cref="Tags"/> that contains additional data /// about the exception, which needn't be encrypted when stored.</param> public UnhandledException(Exception innerException, Tags encrypted = null, Tags unencrypted = null) : base("An unhandled exception occurred when processing this request. See InnerException for details.", innerException, encrypted, unencrypted) { }
/// <summary> /// Initializes a new instance of the <see cref="ProgrammaticException"/> class with a specified error message /// and a reference to the inner exception that is the cause of this exception. /// </summary> /// <param name="message">The error message that explains the reason for the exception.</param> /// <param name="innerException">Optional. The exception that is the cause of the current exception.</param> /// <param name="encrypted">Optional. A collection of type <see cref="Tags"/> that contains additional data /// about the exception, which must be encrypted when stored.</param> /// <param name="unencrypted">Optional. A collection of type <see cref="Tags"/> that contains additional data /// about the exception, which needn't be encrypted when stored.</param> public ProgrammaticException(string message, Exception innerException = null, Tags encrypted = null, Tags unencrypted = null) : base(message, innerException, encrypted, unencrypted) { }