Logic errors and run time errors are defined in header <stdexcept>.
Logic error: This error happens due to wrong logic entered by the coder.
logic_error class has the following exceptions:
length_error: Error happens due to creation of a large object.
domain_error: Domain error.
invalid_argument: Error due to invalid arguments in a function call.
out_of_range: Error when an argument to a function was out of range.
Run time error: This error happens due to issues in run time.
run_time class has the following exceptions:
range_error: Internal range error.
overflow_error: Error due to arithmetic overflow.
underflow_error: Error due to underflow.