123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- #if UNMANAGED
- namespace SevenZip
- {
- using System;
- using System.Runtime.Serialization;
-
-
-
- [Serializable]
- public class SevenZipArchiveException : SevenZipException
- {
-
-
-
- public static string DefaultMessage =
- $"Invalid archive: open/read error! Is it encrypted and a wrong password was provided?{Environment.NewLine}" +
- "If your archive is an exotic one, it is possible that SevenZipSharp has no signature for " +
- "its format and thus decided it is TAR by mistake.";
-
-
-
- public SevenZipArchiveException() : base(DefaultMessage) { }
-
-
-
-
- public SevenZipArchiveException(string message) : base(DefaultMessage, message) { }
-
-
-
-
-
- public SevenZipArchiveException(string message, Exception inner) : base(DefaultMessage, message, inner) { }
-
-
-
-
-
- protected SevenZipArchiveException(
- SerializationInfo info, StreamingContext context)
- : base(info, context) { }
- }
- }
- #endif
|