Class TypeError
- Namespace
- NumSharp
- Assembly
- NumSharp.dll
Exception that corresponds to Python/NumPy's TypeError. Raised when an operation or function receives an argument of inappropriate type.
public class TypeError : NumSharpException, ISerializable, INumSharpException
- Inheritance
-
TypeError
- Implements
- Derived
- Inherited Members
Constructors
TypeError()
Creates the error with Python's text for a bare raise TypeError: an empty
Message, as str(TypeError()) is ''.
public TypeError()
Remarks
ToString() then starts with the class name alone, as Python's traceback prints a
bare TypeError; prefer a message that names the refused type.
TypeError(string)
Creates the error with NumPy's (or the port's) message.
public TypeError(string message)
Parameters
messagestringThe text, verbatim: Python's
str()of the error.
TypeError(string, Exception)
Creates the error with a message and the exception that caused it: Python's raise TypeError(message) from
innerException, the cause kept in InnerException as Python keeps it in
cause.
public TypeError(string message, Exception innerException)