class PrecondViolatedExcep
1: // Created by Frank M. Carrano and Tim Henry.
2: // Copyright (c) 2013 __Pearson Education__. All rights reserved.
4: /** Listing 7-5.
5: @file PrecondViolatedExcep.h */
7: #ifndef _PRECOND_VIOLATED_EXCEP
8: #define _PRECOND_VIOLATED_EXCEP
10: #include <stdexcept>
11: #include <string>
13: using namespace std;
15: class PrecondViolatedExcep : public logic_error
16: {
17: public:
18: PrecondViolatedExcep(const string& message = "");
19: }; // end PrecondViolatedExcep
20: #endif