../pvss.htm menu.gif basics.gif

getErrorStackTrace()

Returns a dynamic string containing the stack trace (call stack) of an occurred exception.

Synopsis

dyn_string getErrorStackTrace(errClass | dyn_errClass exception);

Parameters

Return value

Stack trace.

 

Description

Returns a dynamic string containing the stack trace (call stack) of an occurred exception.

This function should be used for exception handlings only (exceptions with try- and catch-block). See also Control structures in CONTROL.

 

IconExample

main()

{

  try

  {

    throw(makeError("", PRIO_SEVERE, ERR_PARAM, 54, "my_exception"));

  }

  catch

  {

    DebugN(getLastException());     

    DebugN(getErrorStackTrace(getLastException()));

  }

}   

 

Assignment

Error functions

Availability

UI, CTRL, DP

See also

getLastError(), Error handling, getStackTrace(), Control structures in CONTROL, getLastException(), getErrorCataloge()

Top Of Page

 

V 3.11 SP1

Copyright ETM professional control GmbH 2013 All Rights Reserved