class
<stdexcept>
std::domain_errorDomain error exception
Generally, the domain of a mathematical function is the subset of values that it is defined for. For example, the square root function is only defined for non-negative numbers. Thus, a negative number for such a function would qualify as a domain error.
No component of the standard library throws exceptions of this type. It is designed as a standard exception to be thrown by programs.
1
2
3
4
class domain_error : public logic_error {
public:
explicit domain_error (const string& what_arg);
};
1
2
3
4
5
class domain_error : public logic_error {
public:
explicit domain_error (const string& what_arg);
explicit domain_error (const char* what_arg);
};
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4