mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
54 lines
1.9 KiB
C#
54 lines
1.9 KiB
C#
//---------------------------------------------------------------------
|
|
// <copyright file="ArchiveException.cs" company="Microsoft Corporation">
|
|
// Copyright (c) 1999, Microsoft Corporation. All rights reserved.
|
|
// </copyright>
|
|
// <summary>
|
|
// Part of the Deployment Tools Foundation project.
|
|
// </summary>
|
|
//---------------------------------------------------------------------
|
|
|
|
namespace Microsoft.PackageManagement.Archivers.Internal.Compression
|
|
{
|
|
using System;
|
|
using System.IO;
|
|
|
|
/// <summary>
|
|
/// Base exception class for compression operations. Compression libraries should
|
|
/// derive subclass exceptions with more specific error information relevent to the
|
|
/// file format.
|
|
/// </summary>
|
|
public class ArchiveException : IOException
|
|
{
|
|
/// <summary>
|
|
/// Creates a new ArchiveException with a specified error message and a reference to the
|
|
/// inner exception that is the cause of this exception.
|
|
/// </summary>
|
|
/// <param name="message">The message that describes the error.</param>
|
|
/// <param name="innerException">The exception that is the cause of the current exception. If the
|
|
/// innerException parameter is not a null reference (Nothing in Visual Basic), the current exception
|
|
/// is raised in a catch block that handles the inner exception.</param>
|
|
public ArchiveException(string message, Exception innerException)
|
|
: base(message, innerException)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Creates a new ArchiveException with a specified error message.
|
|
/// </summary>
|
|
/// <param name="message">The message that describes the error.</param>
|
|
public ArchiveException(string message)
|
|
: this(message, null)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Creates a new ArchiveException.
|
|
/// </summary>
|
|
public ArchiveException()
|
|
: this(null, null)
|
|
{
|
|
}
|
|
|
|
}
|
|
}
|