Skip to main content

Variable: oddsErrors

const oddsErrors: object

Defined in: src/odds/math.ts:390

The odds error classes keyed by their Python names, mounted as sdv.odds.errors.

Type Declaration​

OverflowError​

OverflowError: typeof OddsOverflowError = OddsOverflowError

RuntimeError​

RuntimeError: typeof OddsRuntimeError = OddsRuntimeError

ValueError​

ValueError: typeof OddsValueError = OddsValueError

ZeroDivisionError​

ZeroDivisionError: typeof OddsZeroDivisionError = OddsZeroDivisionError

Remarks​

Lets callers write e instanceof sdv.odds.errors.ValueError without importing the Odds* classes from the package root.