Class ModuleNotFoundError
- Namespace
- NumSharp
- Assembly
- NumSharp.dll
Python's ModuleNotFoundError, the ImportError raised when a module cannot be located
(No module named 'x'). NumSharp itself raises none; a port raises it where its Python source does - a
registry that resolves "module:Name" entry points, for example.
public class ModuleNotFoundError : ImportError, ISerializable, INumSharpException
- Inheritance
-
ModuleNotFoundError
- Implements
- Inherited Members
Remarks
A subclass of ImportError, as in Python, so catch (ImportError) catches it. Python's
import system fills name with the missing module; a port does the same through the
keyword constructor.
Constructors
ModuleNotFoundError()
Creates the error with Python's text for a bare raise ModuleNotFoundError: an empty
Message, as str(ModuleNotFoundError()) is ''.
public ModuleNotFoundError()
ModuleNotFoundError(string)
Creates the error with a message (No module named 'x').
public ModuleNotFoundError(string message)
Parameters
messagestringThe text, verbatim: Python's
str()of the error.
ModuleNotFoundError(string, Exception)
Creates the error with a message and the exception that caused it: Python's raise
ModuleNotFoundError(msg) from innerException.
public ModuleNotFoundError(string message, Exception innerException)
Parameters
messagestringThe text, verbatim: Python's
str()of the error.innerExceptionExceptionThe exception that led to this one, or null for none.
ModuleNotFoundError(string, string, string)
Python's ModuleNotFoundError(msg, name=name, path=path).
public ModuleNotFoundError(string message, string name, string path)
Parameters
messagestringThe text (Python's
msg), or null for none (an empty Message).namestringThe missing module's name (Python's
name), or null.pathstringThe file path (Python's
path), or null.
ModuleNotFoundError(string, string, string, Exception)
Python's raise ModuleNotFoundError(msg, name=name, path=path) from innerException.
public ModuleNotFoundError(string message, string name, string path, Exception innerException)