Show / Hide Table of Contents

Class ValueOutOfRangeException

Indicates that a value was outside of the expected range when decoding an input stream

Inheritance
System.Object
System.Exception
SharpZipBaseException
StreamDecodingException
ValueOutOfRangeException
Implements
System.Runtime.Serialization.ISerializable
Inherited Members
System.Exception.GetBaseException()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
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: ICSharpCode.SharpZipLib
Assembly: ICSharpCode.SharpZipLib.dll
Syntax
[Serializable]
public class ValueOutOfRangeException : StreamDecodingException, ISerializable

Constructors

| Improve this Doc View Source

ValueOutOfRangeException(SerializationInfo, StreamingContext)

Initializes a new instance of the ValueOutOfRangeException class with serialized data.

Declaration
protected ValueOutOfRangeException(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.

| Improve this Doc View Source

ValueOutOfRangeException(String)

Initializes a new instance of the ValueOutOfRangeException class naming the causing variable

Declaration
public ValueOutOfRangeException(string nameOfValue)
Parameters
Type Name Description
System.String nameOfValue

Name of the variable, use: nameof()

| Improve this Doc View Source

ValueOutOfRangeException(String, Int64, Int64, Int64)

Initializes a new instance of the ValueOutOfRangeException class naming the causing variable, it's current value and expected range.

Declaration
public ValueOutOfRangeException(string nameOfValue, long value, long maxValue, long minValue = 0L)
Parameters
Type Name Description
System.String nameOfValue

Name of the variable, use: nameof()

System.Int64 value

The invalid value

System.Int64 maxValue

Expected maximum value

System.Int64 minValue

Expected minimum value

| Improve this Doc View Source

ValueOutOfRangeException(String, String, String, String)

Initializes a new instance of the ValueOutOfRangeException class naming the causing variable, it's current value and expected range.

Declaration
public ValueOutOfRangeException(string nameOfValue, string value, string maxValue, string minValue = "0")
Parameters
Type Name Description
System.String nameOfValue

Name of the variable, use: nameof()

System.String value

The invalid value

System.String maxValue

Expected maximum value

System.String minValue

Expected minimum value

Implements

System.Runtime.Serialization.ISerializable
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2000-2022 SharpZipLib Contributors