2024-04-23 14:47:40 +01:00
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace SharpCompress.Common;
|
|
|
|
|
|
2025-04-28 16:05:31 +01:00
|
|
|
public class SharpCompressException : Exception
|
2024-04-23 14:47:40 +01:00
|
|
|
{
|
2024-04-23 14:48:50 +01:00
|
|
|
public SharpCompressException() { }
|
|
|
|
|
|
2024-04-23 14:47:40 +01:00
|
|
|
public SharpCompressException(string message)
|
|
|
|
|
: base(message) { }
|
|
|
|
|
|
|
|
|
|
public SharpCompressException(string message, Exception inner)
|
|
|
|
|
: base(message, inner) { }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class ArchiveException(string message) : SharpCompressException(message);
|
|
|
|
|
|
2026-02-16 12:40:07 +00:00
|
|
|
public class ArchiveOperationException : SharpCompressException
|
|
|
|
|
{
|
|
|
|
|
public ArchiveOperationException() { }
|
|
|
|
|
|
|
|
|
|
public ArchiveOperationException(string message)
|
|
|
|
|
: base(message) { }
|
|
|
|
|
|
|
|
|
|
public ArchiveOperationException(string message, Exception inner)
|
|
|
|
|
: base(message, inner) { }
|
|
|
|
|
}
|
|
|
|
|
|
2024-04-23 14:47:40 +01:00
|
|
|
public class IncompleteArchiveException(string message) : ArchiveException(message);
|
|
|
|
|
|
|
|
|
|
public class CryptographicException(string message) : SharpCompressException(message);
|
|
|
|
|
|
|
|
|
|
public class ReaderCancelledException(string message) : SharpCompressException(message);
|
|
|
|
|
|
|
|
|
|
public class ExtractionException : SharpCompressException
|
|
|
|
|
{
|
2024-04-23 14:48:50 +01:00
|
|
|
public ExtractionException() { }
|
|
|
|
|
|
2024-04-23 14:47:40 +01:00
|
|
|
public ExtractionException(string message)
|
|
|
|
|
: base(message) { }
|
|
|
|
|
|
|
|
|
|
public ExtractionException(string message, Exception inner)
|
|
|
|
|
: base(message, inner) { }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class MultipartStreamRequiredException(string message) : ExtractionException(message);
|
|
|
|
|
|
|
|
|
|
public class MultiVolumeExtractionException(string message) : ExtractionException(message);
|
|
|
|
|
|
|
|
|
|
public class InvalidFormatException : ExtractionException
|
|
|
|
|
{
|
2024-04-23 14:48:50 +01:00
|
|
|
public InvalidFormatException() { }
|
|
|
|
|
|
2024-04-23 14:47:40 +01:00
|
|
|
public InvalidFormatException(string message)
|
|
|
|
|
: base(message) { }
|
|
|
|
|
|
|
|
|
|
public InvalidFormatException(string message, Exception inner)
|
|
|
|
|
: base(message, inner) { }
|
|
|
|
|
}
|