finpandas.utils.errors module

Custom errors.

exception NestedDepthError(input_depth: int, correct_depth: int, message='iterable depth of ({input_depth}) invalid for required depth ({correct_depth})')

Bases: Exception

Exception raised when the inputted nested iterable is the incorrect depth

Parameters
  • input_depth (int) – the depth of the inputted iterable

  • correct_depth (int) – the correct depth of the inputted iterable

  • message (str, optional) – printed output. Defaults to “the nested depth of the iterable ({input_depth}) is invalid for required depth ({correct_depth})”.

exception TickerNotFoundError(ticker: str, message="inputted ticker '{ticker}' could not be found")

Bases: Exception

Exception raised when the inputted ticker is not found

Parameters
  • ticker (str) – the ticker

  • message (str, optional) – printed output. Defaults to “the inputted ticker ‘{ticker}’ could not be found”.