null_pointer_exception.cpp

00001 //--------------------------------------------------
00012 //---------------------------------------------------#include "null_pointer_exception.h"
00013 
00014 #include "../global/global_definitions.h"
00015 
00016 #include "null_pointer_exception.h"
00017 
00018 namespace imedgine 
00019 {
00020 
00021   NullPointerException::NullPointerException(std::string method, std::string pointer_name)
00022   : Exception(NULL_POINTER_EXCEPTION, method + "; pointer name: " + pointer_name)
00023   {
00024   }
00025   
00026   NullPointerException::NullPointerException(NullPointerException const& src)
00027   : Exception(src)
00028   {
00029   }      
00030   
00031   
00032   NullPointerException::~NullPointerException() throw()
00033   {
00034   }
00035   
00036   char const* NullPointerException::what() const throw()
00037   {
00038     return("null pointer exception");  
00039   }
00040 }

Generated on Sun Aug 13 18:19:39 2006 for iMEDgine by  doxygen 1.4.6