myException copy 2 - far just write the message to screen...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#ifndef _myException #define _myException # #include <string> #include <iostream> #include <fstream> using namespace std; u class myException { public: p // int: error code, string is the concrete error message myException(int,const string&); ~myException() {}; ~ /* how to handle the exception is done here, so
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: far, just write the message to screen and log file */ virtual void response(); int getErrCode() { return errorCode; } string& getErrMsg() { return errorMsg; } s private: void initVars(); v private: int errorCode; string errorMsg; }; } #endif...
View Full Document

This note was uploaded on 03/27/2011 for the course COMPUTER 101 taught by Professor Bobthebuilder during the Spring '11 term at Columbia College.

Ask a homework question - tutors are online