:relfileprefix: ../../
[#E3E9FD469D613F6B65657A5153D370D4B9BFC9E6]

= Function check_error_code

pass:v,q[Creates a predicate for checking whether an exception is being thrown]


== Synopsis

Declared in header `<https://github.com/Lastique/scope/blob/develop/include/boost/scope/error_code_checker.hpp#L93[boost/scope/error_code_checker.hpp,window=blank_]>`

[source,cpp,subs="verbatim,macros,-callouts"]
----
template<typename ErrorCode>
xref:boost/scope/error_code_checker.adoc[error_code_checker]<ErrorCode>
check_error_code(ErrorCode& ec) noexcept;
----

== Description

pass:v,q[**Throws:** Nothing.]



== Return Value

* `xref:boost/scope/error_code_checker.adoc[error_code_checker]<ErrorCode>` 


== Parameters

|===
| Name | Type 

| *ec*
| `ErrorCode&`

|===



