Class NameError
- Namespace
- NumSharp
- Assembly
- NumSharp.dll
Exception that corresponds to Python/NumPy's NameError.
Raised when a name referenced by value is not defined.
public class NameError : NumSharpException, ISerializable, INumSharpException
- Inheritance
-
NameError
- Implements
- Inherited Members
Remarks
Mirrors Python's NameError for API compatibility. In NumSharp this is raised where
NumPy itself raises NameError — notably np.bmat("A,B; C,D", …), whose string
form resolves each whitespace/comma-separated token as a variable name and reaches
defmatrix.py's raise NameError(f"name {col!r} is not defined") when a token is
absent from the supplied name dictionaries (this also fires for numeric literals, since a
token such as "1" is treated as a name).
Constructors
NameError()
public NameError()
NameError(string)
public NameError(string message)
Parameters
messagestring