Source of Listing7-5.h


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

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

  7: #ifndef PRECOND_VIOLATED_EXCEPT_
  8: #define PRECOND_VIOLATED_EXCEPT_

 10: #include <stdexcept>
 11: #include <string>

 13: class PrecondViolatedExcept : public std::logic_error
 14: {
 15: public:
 16:    PrecondViolatedExcep(const std::string& message = "");
 17: }; // end PrecondViolatedExcept
 18: #endif