Topic: <stdexception>


Author: lars.farm@nts.mh.se (Lars Farm)
Date: 1995/05/25
Raw View
I'm trying to figure out the standard exception classes and have a couple
of questions. I want to verify preconditions, class invariants and perhaps
postconditions. Where would they fit in the std exception hierarchy? I
figure I should derive from domain_error or invalid_argument for
preconditions, but what is a domain_error and how is it different from
invalid_argument? the draft says that class domain_error is for domain
errors, my dictionary doesn't make me wiser. I'm shure someone has defined
these terms somewhere, but I can't find a definition in the draft.

  - lars


--
lars.farm@nts.mh.se