This class defines the type of objects thrown as exceptions to report domain errors.
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.