Skip to content

domain errors not being thrown by uniform_lpdf, discrete_uniform_lpmf, pareto_lpdf #1697

Open
@bob-carpenter

Description

@bob-carpenter

Description

The uniform_lpdf, discrete_uniform_lpmf and pareto_lpdf all have support determined by parameters. When the variate is not in that support we should be throwing std::domain_error as elsewhere.

The principle at work here is that we want to fail fast with an informative error message, not just let NaN values propagate and cause rejections.

Current Version:

v3.1.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions