Source of Listing7-6.cpp


  1: //  Created by Frank M. Carrano and Timothy M. Henry.
  2: //  Copyright (c) 2017 Pearson Education, Hoboken, New Jersey.

  4: /** Listing 7-6.
  5:     @file PrecondViolatedExcept.cpp */

  7: #include "PrecondViolatedExcept.h"

  9: PrecondViolatedExcept::PrecondViolatedExcept(const std::string& message)
 10:                        : std::logic_error("Precondition Violated Exception: " + message)
 11: {
 12: }  // end constructor