gflib  1.0
クラス gfl::err::Exception

全ての例外クラスの基本クラス [詳細]

#include <gfl_Exception.h>

gfl::err::Exceptionに対する継承グラフ
gfl::err::IlligalArgumentException gfl::err::IndexOutOfBoundsException gfl::err::IOException gfl::err::MemoryAllocateException gfl::err::NullPointerException gfl::err::FileNotFoundException

すべてのメンバ一覧

Public メソッド

 Exception (const char *message=NULL, const char *fileName=NULL, u32 line=0)
 コンストラクタ
void PrintStackTrace (void) const
 トレース情報をコンソールへ出力する
const char * GetThrowsFileName (void) const
 例外が発行されたファイル名を取得
u32 GetThrowsFileLine (void) const
 例外が発行されたファイルの行数を取得

Protected メソッド

void SetMassage (const char *classHeader, const char *message)

Protected 変数

char m_message [MESSAGE_BUFFER_SIZE]
char m_fileName [FILENAME_BUFFER_SIZE]
u32 m_line

Static Protected 変数

static const u32 MESSAGE_BUFFER_SIZE = 256
static const u32 FILENAME_BUFFER_SIZE = 128

説明

全ての例外クラスの基本クラス


コンストラクタとデストラクタ

gfl::err::Exception::Exception ( const char *  message = NULL,
const char *  fileName = NULL,
u32  line = 0 
)

コンストラクタ

---------------------------------------------------------------------

引数:
messageエラーメッセージを追加したい際の文字列(省略可能) NULLの指定も可能。
fileNameエラーが発生したファイル名(省略可能) NULLの指定も可能。
lineエラーが発生したファイル行番号(省略可能)
戻り値:
無し

関数

u32 gfl::err::Exception::GetThrowsFileLine ( void  ) const

例外が発行されたファイルの行数を取得

---------------------------------------------------------------------

引数:
無し
戻り値:
例外が発行されたファイルの行数
const char* gfl::err::Exception::GetThrowsFileName ( void  ) const

例外が発行されたファイル名を取得

---------------------------------------------------------------------

引数:
無し
戻り値:
例外が発行されたファイル名
void gfl::err::Exception::PrintStackTrace ( void  ) const

トレース情報をコンソールへ出力する

---------------------------------------------------------------------

引数:
無し
戻り値:
無し
void gfl::err::Exception::SetMassage ( const char *  classHeader,
const char *  message 
) [protected]

変数

const u32 gfl::err::Exception::FILENAME_BUFFER_SIZE = 128 [static, protected]
u32 gfl::err::Exception::m_line [protected]
const u32 gfl::err::Exception::MESSAGE_BUFFER_SIZE = 256 [static, protected]

このクラスの説明は次のファイルから生成されました: