Class SharpZipBaseException
SharpZipBaseException is the base exception class for SharpZipLib. All library exceptions are derived from this.
Inheritance
Implements
Inherited Members
Namespace: ICSharpCode.SharpZipLib
Assembly: ICSharpCode.SharpZipLib.dll
Syntax
[Serializable]
public class SharpZipBaseException : Exception, ISerializable
Remarks
NOTE: Not all exceptions thrown will be derived from this class. A variety of other exceptions are possible for example System.ArgumentNullException
Constructors
| Improve this Doc View SourceSharpZipBaseException()
Initializes a new instance of the SharpZipBaseException class.
Declaration
public SharpZipBaseException()
SharpZipBaseException(SerializationInfo, StreamingContext)
Initializes a new instance of the SharpZipBaseException class with serialized data.
Declaration
protected SharpZipBaseException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown. |
System.Runtime.Serialization.StreamingContext | context | The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination. |
SharpZipBaseException(String)
Initializes a new instance of the SharpZipBaseException class with a specified error message.
Declaration
public SharpZipBaseException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | A message describing the exception. |
SharpZipBaseException(String, Exception)
Initializes a new instance of the SharpZipBaseException class with a specified error message and a reference to the inner exception that is the cause of this exception.
Declaration
public SharpZipBaseException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | A message describing the exception. |
System.Exception | innerException | The inner exception |