|
SNAP Library 2.2, Developer Reference
2014-03-11 19:15:55
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <ut.h>


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] |
Definition at line 169 of file ut.h.
Referenced by TUnicode::EncodeUtf8(), Throw(), and ThrowFull().

| 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.
References New().
Referenced by TExpBi::AssertArgs(), TExpBi::AssertArgValType(), TBlobBs::AssertBlobTag(), TXmlObjSer::AssertXmlHd(), TXmlLx::EThrow(), TExp::EvalExp(), TExp::EvalExpOp(), ExeStop(), TExpBi::GetBiConstVal(), TExpBi::GetBiFuncVal(), TXmlObjSer::GetBoolArg(), TJsonVal::GetChAFromVal(), TXmlObjSer::GetFltArg(), TExpVal::GetFltValAsInt(), TXmlObjSer::GetInt64Arg(), TXmlObjSer::GetIntArg(), TExpHelpObj::GetObjTypeFromStr(), TJsonVal::GetValFromLx(), TLinReg::NR_gaussj(), TLinReg::NR_lfit(), TSvd::NR_svdcmp(), and XLoadFromFile().
{
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.
References New().
{
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.
References New().
{
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.
References New().
Referenced by TBlobBs::AssertBlobBsStateStr().
{
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] |