SNAP Library 2.0, User Reference
2013-05-13 16:33:57
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <ut.h>
Inherited by TNSException.
Public Types | |
typedef void(* | TOnExceptF )(const TStr &MsgStr) |
Public Member Functions | |
TExcept (const TStr &_MsgStr) | |
TExcept (const TStr &_MsgStr, const TStr &_LocStr) | |
virtual | ~TExcept () |
TStr | GetMsgStr () const |
TStr | GetLocStr () const |
TStr | GetStr () const |
Static Public Member Functions | |
static PExcept | New (const TStr &MsgStr, const TStr &LocStr=TStr()) |
static bool | IsOnExceptF () |
static void | PutOnExceptF (TOnExceptF _OnExceptF) |
static TOnExceptF | GetOnExceptF () |
static void | Throw (const TStr &MsgStr) |
static void | Throw (const TStr &MsgStr, const TStr &ArgStr) |
static void | Throw (const TStr &MsgStr, const TStr &ArgStr1, const TStr &ArgStr2) |
static void | ThrowFull (const TStr &MsgStr, const TStr &LocStr) |
Static Public Attributes | |
static TOnExceptF | OnExceptF = NULL |
Private Member Functions | |
UndefDefaultCopyAssign (TExcept) | |
Private Attributes | |
TCRef | CRef |
TStr | MsgStr |
TStr | LocStr |
Friends | |
class | TPt< TExcept > |
typedef void(* TExcept::TOnExceptF)(const TStr &MsgStr) |
TExcept::TExcept | ( | const TStr & | _MsgStr | ) | [inline] |
TExcept::TExcept | ( | const TStr & | _MsgStr, |
const TStr & | _LocStr | ||
) | [inline] |
virtual TExcept::~TExcept | ( | ) | [inline, virtual] |
TStr TExcept::GetLocStr | ( | ) | const [inline] |
TStr TExcept::GetMsgStr | ( | ) | const [inline] |
static TOnExceptF TExcept::GetOnExceptF | ( | ) | [inline, static] |
TStr TExcept::GetStr | ( | ) | const [inline] |
static bool TExcept::IsOnExceptF | ( | ) | [inline, static] |
static PExcept TExcept::New | ( | const TStr & | MsgStr, |
const TStr & | LocStr = TStr() |
||
) | [inline, static] |
static void TExcept::PutOnExceptF | ( | TOnExceptF | _OnExceptF | ) | [inline, static] |
static void TExcept::Throw | ( | const TStr & | MsgStr | ) | [inline, static] |
Definition at line 187 of file ut.h.
{ if (IsOnExceptF()){(*OnExceptF)(MsgStr);} else {throw TExcept::New(MsgStr);}}
static void TExcept::Throw | ( | const TStr & | MsgStr, |
const TStr & | ArgStr | ||
) | [inline, static] |
Definition at line 190 of file ut.h.
{ TStr FullMsgStr=MsgStr+" ("+ArgStr+")"; if (IsOnExceptF()){(*OnExceptF)(FullMsgStr);} else {throw TExcept::New(FullMsgStr);}}
static void TExcept::Throw | ( | const TStr & | MsgStr, |
const TStr & | ArgStr1, | ||
const TStr & | ArgStr2 | ||
) | [inline, static] |
Definition at line 194 of file ut.h.
{ TStr FullMsgStr=MsgStr+" ("+ArgStr1+", "+ArgStr2+")"; if (IsOnExceptF()){(*OnExceptF)(FullMsgStr);} else {throw TExcept::New(FullMsgStr);}}
static void TExcept::ThrowFull | ( | const TStr & | MsgStr, |
const TStr & | LocStr | ||
) | [inline, static] |
Definition at line 198 of file ut.h.
{ if (IsOnExceptF()){(*OnExceptF)(MsgStr);} else {throw TExcept::New(MsgStr, LocStr);}}
TExcept::UndefDefaultCopyAssign | ( | TExcept | ) | [private] |
TCRef TExcept::CRef [private] |
TStr TExcept::LocStr [private] |
TStr TExcept::MsgStr [private] |
TExcept::TOnExceptF TExcept::OnExceptF = NULL [static] |