Skip to content

FileNotFoundError(path) Source

Bases: NumdaplotError, builtins.FileNotFoundError

Raised when a Table is read from a path where there is no file.

It is also a Python FileNotFoundError, so code catching the Python error keeps working.

Added in version 0.1.0

Parameters:

  • path (str)

    The path of the file, as given.

Attributes:

  • path

    The path of the file, as given.

Examples:

import numdaplot as ndp

try:
    ndp.Table.from_csv("missing.csv")
except ndp.FileNotFoundError as error:
    print(error)
# No file found at missing.csv.