Class
InvalidDataException

Signals that input ZIP or related data is malformed or violates expected format constraints during processing.

Definition

Namespace:Telerik.Windows.Zip

Assembly:Telerik.Windows.Zip.dll

Syntax:

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors")]
[SuppressMessage("Microsoft.Usage", "CA2237:MarkISerializableTypesWithSerializable")]
public sealed class InvalidDataException : Exception, ISerializable

Inheritance: objectExceptionInvalidDataException

Implements: ISerializable

Inherited Members Exception.GetBaseException()Exception.ToString()Exception.GetType()Exception.TargetSiteException.MessageException.DataException.InnerExceptionException.HelpLinkException.SourceException.HResultException.StackTrace

Constructors

InvalidDataException()

Creates an InvalidDataException representing a generic invalid data condition.

Declaration

cs-api-definition
public InvalidDataException()

InvalidDataException(string)

Creates an InvalidDataException with a specific explanatory error message.

Declaration

cs-api-definition
public InvalidDataException(string message)

Parameters

message

string

The error message that explains the reason for the exception.

InvalidDataException(string, Exception)

Creates an InvalidDataException with a message and inner exception providing causal context.

Declaration

cs-api-definition
public InvalidDataException(string message, Exception innerException)

Parameters

message

string

The error message that explains the reason for the exception.

innerException

Exception

The exception that is the cause of the current exception. If the innerException parameter is not null, the current exception is raised in a catch block that handles the inner exception.