Class: OddsValueError
Defined in: src/odds/math.ts:29
Python ValueError raised by the odds math (a zero American price, a decimal price
<= 1, a log of a non-positive odds ratio, an unknown devig method, a non-bracketing
Shin solver).
Remarks
name is 'ValueError' so it compares equal to the sdv-py error type;
the class extends SdvError. Also exposed as oddsErrors.ValueError.
Extends
Constructors
Constructor
new OddsValueError(
message,options?):OddsValueError
Defined in: src/core/errors.ts:224
Parameters
message
string
Human-readable message; callers redact it (see redactSecrets).
options?
{ cause } as for Error; the cause is stored through safeCause.
When options has no cause key, no cause is attached.
cause?
unknown
Returns
OddsValueError
Inherited from
Properties
name
name:
string='ValueError'
Defined in: src/odds/math.ts:30
Overrides
SdvError.name