Skip to content

Class BadStateException

Namespace: OfficeOpenXml.Packaging.Ionic.Zip
Assembly: EPPlus.dll

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.

public class BadStateException : ZipException, ISerializable

Inheritance

object ← Exception ← ZipException ← BadStateException

Implements

ISerializable

Inherited Members

Exception.Data
Exception.GetBaseException()
Exception.GetType()
Exception.HelpLink
Exception.HResult
Exception.InnerException
Exception.Message
Exception.SerializeObjectState
Exception.Source
Exception.StackTrace
Exception.TargetSite
Exception.ToString()
object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object?, object?)
object.ToString()

Constructors

BadStateException()

Default ctor.

public BadStateException()

BadStateException(string)

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

public BadStateException(string message)

Parameters

message string

The message in the exception.

BadStateException(string, Exception)

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

public BadStateException(string message, Exception innerException)

Parameters

message string

The message in the exception.

innerException Exception

The innerException for this exception.