[#mp_units-throw_policy]
= xref:mp_units.adoc[mp&lowbar;units]::throw&lowbar;policy
:relfileprefix: ../
:mrdocs:

Error policy that throws std&colon;&colon;domain&lowbar;error on constraint violation (hosted only)&period;

== Synopsis

Declared in `&lt;mp&hyphen;units&sol;constrained&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct throw&lowbar;policy;
----

== Static Member Functions

[cols="1"]
|===
| Name
| xref:mp_units/throw_policy/on_constraint_violation.adoc[`on&lowbar;constraint&lowbar;violation`] 
|===


== Derived Classes

[cols="1,4"]
|===
| Name| Description
| xref:mp_units/safe_int_throw_policy.adoc[`safe&lowbar;int&lowbar;throw&lowbar;policy`] 
| Error policy that throws std&colon;&colon;overflow&lowbar;error on overflow (hosted only)&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
