Home · All Classes · alphabetical Classes List · Modules · Functions ·

QxtError Class Reference
[Core]

Information about Errors ocuring inside Qxt. More...

Public Member Functions

Related Functions

(Note that these are not member functions.)

Detailed Description

Information about Errors ocuring inside Qxt.


Member Function Documentation

char * QxtError::errorString ( ) const

The Error String or NULL depending how the error was constructed. Be carefull with stack and temporary objects, QxtError just saves the pointer you passed, not the actual data.



Friends And Related Function Documentation

QXT_DROP ( ) [related]

droping an error inside a function that returns QxtError

short for return QxtError(__FILE__,__LINE__,x);


QXT_DROP_S ( x, ) [related]

droping an error inside a function that returns QxtError

aditionaly specifies an errorstring

short for return QxtError(__FILE__,__LINE__,x,s);


QXT_DROP_OK [related]

droping no error inside a function that returns QxtError

short for return QxtError(__FILE__,__LINE__,Qxt::NoError);


QXT_DROP_F ( call  ) [related]

forward a drop

drops from this function if the call inside dropped too. the inner function must return or be a QxtError.

example

QXT_DROP_F(critical_function());


QXT_DROP_SCOPE ( name, call  ) [related]

check for errors

example

QXT_DROP_SCOPE(error,critical_function())
        {
        qDebug()<<error;
        QXT_DROP_F(error);
        };

short for QxtError name = call; if (name != Qxt::NoError )

Warning:
: the errors name is valid outside the scope



(c) 2007A.Picciani and A.Higerd LGPL
libqxt 0.2