Table of Contents

Class ValueError

Namespace
NumSharp
Assembly
NumSharp.dll

NumPy-compatible ValueError exception. Raised when an operation receives an argument with the right type but inappropriate value.

public class ValueError : ArgumentException, ISerializable, INumSharpException
Inheritance
ValueError
Implements
Inherited Members
Extension Methods

Remarks

Mirrors Python's ValueError / numpy's ValueError for API compatibility. Common cases:

  • negative dimensions: "negative dimensions are not allowed"
  • invalid seed: "Seed must be between 0 and 2**32 - 1"
  • randint bounds: "high is out of bounds for int32"

Constructors

ValueError()

public ValueError()

ValueError(string)

public ValueError(string message)

Parameters

message string

ValueError(string, Exception)

public ValueError(string message, Exception innerException)

Parameters

message string
innerException Exception

ValueError(string, string)

public ValueError(string message, string paramName)

Parameters

message string
paramName string