CSvgErrorImpl Class Reference

class CSvgErrorImpl : public CBase

This class implements the interface for a MSvgError object, which contains an error code and a description of the error if one exists.

SVGEngine.lib
Since
1.0

Inherits from

Constructor & Destructor Documentation

CSvgErrorImpl()

CSvgErrorImpl ( ) [private]

Constructor. The default error code is ESvgNoError and description is "No Error"

Since
1.0

~CSvgErrorImpl()

~CSvgErrorImpl ( ) [virtual]

Destructor

Member Functions Documentation

AppendDescription(const TDesC &)

void AppendDescription ( const TDesC & aDescription )

Append the given text to the existing description .

Since
1.0

Parameters

const TDesC & aDescription : error description string

ConstructL()

void ConstructL ( ) [protected]

Second phase of constructor

Since
1.0

Description()

TDesC & Description ( )

Get the error description string for this object.

Since
1.0

ErrorCode()

TSvgErrorCode ErrorCode ( )

Get the error code contained by this object.

Since
1.0

HasError()

TBool HasError ( )

Determine wether an error is indicated by this object.

Since
1.0

IsWarning()

TBool IsWarning ( )

Determine wether an error is only a warning. This should be a state when the svg may be display, despite a conflict.

Since
1.0

NewL()

CSvgErrorImpl * NewL ( ) [static]

Two-phase constructor. The default error code is ESvgNoError and description is "No Error"

Since
1.0

NewLC()

CSvgErrorImpl * NewLC ( ) [static]

Two-phase constructor. The default error code is ESvgNoError and description is "No Error"

Since
1.0

SetDescription(const TDesC &)

void SetDescription ( const TDesC & aDescription )

Set the error description.

Since
1.0

Parameters

const TDesC & aDescription : error description string

SetDescription(const TDesC &, const TDesC &)

void SetDescription ( const TDesC & aText1,
const TDesC & aText2
)

Set the error description.

Since
1.0

Parameters

const TDesC & aText1 : error description string 1
const TDesC & aText2 : error description string 2

SetErrorCode(TSvgErrorCode)

void SetErrorCode ( TSvgErrorCode aError )

Set the error code.

Since
1.0

Parameters

TSvgErrorCode aError : error code

SetIsWarning(TBool)

void SetIsWarning ( TBool aBool )

Set the flag to indicate the error indicated by this object is only a warning.

Since
1.0

Parameters

TBool aBool

SetSystemErrorCode(TInt)

void SetSystemErrorCode ( TInt aError )

Set the error code.

Since
1.0

Parameters

TInt aError : error code

SystemErrorCode()

TInt SystemErrorCode ( )

Get the error code contained by this object.

Since
1.0

Member Data Documentation

HBufC * iDescription

HBufC * iDescription [private]

TSvgErrorCode iErrorCode

TSvgErrorCode iErrorCode [private]

TBool iIsWarning

TBool iIsWarning [private]

TInt iSystemErrorCode

TInt iSystemErrorCode [private]