## 19.4 Case Study: Matrices

- Define 2 new classes:
  - `MatrixMismatchException`, inherits from the standard class `invalid_argument`
  - `MatrixIndexExceptions`, inherits from `out_of_range`
    - C'tor also takes the offending index value
    - Uses a private method to append index to string before calling the base-class c'tor
- The test program has an example of using a single catch clause to catch both of these exceptions

prev |top |next