Class ValueOutOfRangeException
Indicates that a value was outside of the expected range when decoding an input stream
Inheritance
Implements
Inherited Members
Namespace: ICSharpCode.SharpZipLib
Assembly: ICSharpCode.SharpZipLib.dll
Syntax
[Serializable]
public class ValueOutOfRangeException : StreamDecodingException, ISerializable
Constructors
| Improve this Doc View SourceValueOutOfRangeException(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. |
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() |
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 |
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 |