in c++,
Well, this is all the guidance you get from the C++ standard:
The class domain_error defines the type of objects thrown as exceptions by the implementation to report domain errors.
Domain here means "problem domain", nothing to do with the internet. For example, a square root function might throw a domain error if passed a negative number.