Show / Hide Table of Contents

Class BadStateException

Indicates that an operation was attempted on a ZipFile which was not possible given the state of the instance. For example, if you call Save() on a ZipFile which has no filename set, you can get this exception.

Inheritance
System.Object
System.Exception
ZipException
BadStateException
Implements
System.Runtime.Serialization.ISerializable
Inherited Members
System.Exception.GetBaseException()
System.Exception.GetType()
System.Exception.ToString()
System.Exception.Data
System.Exception.HelpLink
System.Exception.HResult
System.Exception.InnerException
System.Exception.Message
System.Exception.Source
System.Exception.StackTrace
System.Exception.TargetSite
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: OfficeOpenXml.Packaging.Ionic.Zip
Assembly: EPPlus.dll
Syntax
public class BadStateException : ZipException, ISerializable

Constructors

BadStateException()

Default ctor.

Declaration
public BadStateException()

BadStateException(String)

Come on, you know how exceptions work. Why are you looking at this documentation?

Declaration
public BadStateException(string message)
Parameters
Type Name Description
System.String message

The message in the exception.

BadStateException(String, Exception)

Come on, you know how exceptions work. Why are you looking at this documentation?

Declaration
public BadStateException(string message, Exception innerException)
Parameters
Type Name Description
System.String message

The message in the exception.

System.Exception innerException

The innerException for this exception.

Implements

System.Runtime.Serialization.ISerializable
In This Article
Back to top Generated by DocFX