00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #include "Exceptions.h"
00019 #include <iostream>
00020
00021 using namespace CODEX_KeyService;
00022
00023 void
00024 ExceptionBase::report() const
00025 {
00026 cerr << "At line " << m_line << " of file " << m_fname << endl;
00027 cerr << "CODEX_KeyService exception: ";
00028 derivedMsg();
00029 cerr << endl;
00030 }
00031
00032 void
00033 KeyExistsException::derivedMsg() const
00034 {
00035 cerr << "Key exists";
00036 }
00037
00038 void
00039 NameMismatchException::derivedMsg() const
00040 {
00041 cerr << "Names do not match";
00042 }
00043
00044 void
00045 KeyNotFoundException::derivedMsg() const
00046 {
00047 cerr << "Symmetric key not found";
00048 }
00049
00050 void
00051 ClientNotFoundException::derivedMsg() const
00052 {
00053 cerr << "Client activity not found";
00054 }