Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   Related Pages  

FileExceptions.cc

00001 /*
00002  * Copyright 2003 Michael A. Marsh, Cornell University. All rights reserved.
00003  * This software is released under the modified BSD license.
00004  * See the file LICENSE in the top-level directory for details.
00005  */
00006 //
00007 // $Id: FileExceptions.cc,v 1.3 2004/05/19 15:56:50 mmarsh Exp $
00008 //
00009 // $Log: FileExceptions.cc,v $
00010 // Revision 1.3  2004/05/19 15:56:50  mmarsh
00011 // *** empty log message ***
00012 //
00013 // Revision 1.2  2003/11/04 22:31:48  mmarsh
00014 // *** empty log message ***
00015 //
00016 //
00017 
00018 #include <iostream>
00019 #include "FileExceptions.h"
00020 
00021 using namespace CODEX_Exceptions;
00022 
00023 void
00024 FileException::report() const
00025 {
00026    cerr << "At line " << m_line << " of file " << m_fname << endl;
00027    cerr << "File exception for " << m_file << ": ";
00028    derivedMsg();
00029    cerr << endl;
00030 }
00031 
00032 void
00033 FileCannotCreateException::derivedMsg() const
00034 {
00035    cerr << "could not create file";
00036 }
00037 
00038 void
00039 FileCannotOpenException::derivedMsg() const
00040 {
00041    cerr << "could not open file for reading";
00042 }

Generated on Wed Jun 2 16:32:55 2004 for COrnell Data EXchange (CODEX) by doxygen1.2.18