TBaAssert Class Reference
TBaAssert
class has two methods: AssertDebL and AssertRelL, which can do a panic or leave depending on the iErrorAction value. If the
TBaAssert
object is created with
TBaAssert::ELeave
constant, then AssertDebL/AssertRelL methods will leave when called (if aAssertExprVal argument is EFalse). If the
TBaAssert
object is created with
TBaAssert::EPanic
constant, then AssertDebL/AssertRelL methods will panic when called (if aAssertExprVal argument is EFalse). If the
TBaAssert
object is created using the default constructor - by default the methods will panic. The class size has to be exactly sizeof(enum), because objects of that class are used in some legacy code - replacing an existing enum data member.
Constructor & Destructor Documentation
TBaAssert()
By default
TBaAssert
methods will panic. An error will be issued at compile time if the class size is not sizeof(TBaAssert::TErrorAction).
TBaAssert(TErrorAction)
Initializes
TBaAssert
object panic/leave behaviour.
Parameters
TErrorAction
aErrorAction
|
- TBaAssert::EPanic or TBaAssert::ELeave.
|
Member Functions Documentation
AssertDebL(TBool, TBafPanic)
The method panics/leaves if aAssertExprVal value is EFalse. The panic will be raised only in the DEBUG build.
Parameters
TBool
aAssertExprVal
|
If EFalse, the method panics/leaves.
|
TBafPanic
aPanic
|
Panic code. If the method must leave, the code will be mapped to some Symbian OS error code.
|
AssertRelL(TBool, TBafPanic)
The method panics/leaves if aAssertExprVal value is EFalse.
Parameters
TBool
aAssertExprVal
|
If EFalse, the method panics/leaves.
|
TBafPanic
aPanic
|
Panic code. If the method must leave, the code will be mapped to some Symbian OS error code.
|
DoAssert(TBool, TBafPanic)
DoAssertL(TBool, TBool, TBafPanic)
DoLeaveL(TBafPanic)
void
|
DoLeaveL
|
(
|
TBafPanic
|
aPanic
|
)
|
const [private]
|
Member Enumerations Documentation
Member Data Documentation
TErrorAction
iErrorAction
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.