gflib  1.0
prog/include/err/gfl_Error.h
説明を見る。
00001 
00006 #ifndef __GFL_ERROR_H__
00007 #define __GFL_ERROR_H__
00008 
00009 #pragma once
00010 
00011 #include <err/gfl_Exception.h>
00012 #include <err/gfl_FileNotFoundException.h>
00013 #include <err/gfl_IlligalArgumentException.h>
00014 #include <err/gfl_IndexOutOfBoundsException.h>
00015 #include <err/gfl_IOException.h>
00016 #include <err/gfl_MemoryAllocateException.h>
00017 #include <err/gfl_NullPointerException.h>
00018 
00022 #define THROW_GFL_EXCEPTION(message)           (throw gfl::err::Exception(message,__FILE__,__LINE__))
00023 
00027 #define THROW_GFL_FILE_NOT_FOUND_EXCEPTION(message)   (throw gfl::err::FileNotFoundException(message,__FILE__,__LINE__))
00028 
00032 #define THROW_GFL_ILLIGAL_EXCEPTION(message)   (throw gfl::err::IlligalArgumentException(message,__FILE__,__LINE__))
00033 
00037 #define THROW_GFL_INDEX_OUT_OF_BOUNDS_EXCEPTION(message)   (throw gfl::err::IndexOutOfBoundsException(message,__FILE__,__LINE__))
00038 
00042 #define THROW_GFL_NULL_POINTER_EXCEPTION(message)   (throw gfl::err::NullPointerException(message,__FILE__,__LINE__))
00043 
00047 #define THROW_GFL_IO_EXCEPTION(message)   (throw gfl::err::IOException(message,__FILE__,__LINE__))
00048 
00049 
00053 #define THROW_GFL_MEMORY_ALLOCATE_EXCEPTION(message)   (throw gfl::err::MemoryAllocateException(message,__FILE__,__LINE__))
00054 
00055 #endif  // __GFL_ERROR_H__