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

getLastException()

Gets the last exception that occurred during processing of the function.

Synopsis

errClass getLastException();

Parameters

Return value

Exception.

 

Description

Gets the last exception that occurred during processing of the function. A list of functions that set the errClass in case of an error you can find in chapter getLastError().

 

IconExample

main()

{

  try

  {

    DebugN("main: try");

    throw(makeError("", PRIO_SEVERE, ERR_PARAM, 54, "In main:try"));

    foo();

    DebugN("main: try end");

  }

  catch

  {

    DebugN("main: catch");

    DebugN(getLastException());

    // throw(makeError("", PRIO_SEVERE, ERR_PARAM, 54, "In main: catch"));   

    DebugN("main: catch end");

  }

  finally

  {

    DebugN("main: finally");

    // throw(makeError("", PRIO_SEVERE, ERR_PARAM, 54, "In main: finally"));   

    DebugN("main: finally end");

  }

  DebugN("main: end");

}

foo()

{

  try

  {

    DebugN("foo: try");

    throw(makeError("", PRIO_SEVERE, ERR_PARAM, 54, "In foo:try"));

    DebugN("foo: try end");

  }

  finally

  {

    DebugN("foo: finally");

    // throw(makeError("", PRIO_SEVERE, ERR_PARAM, 54, "In foo:finally"));

    DebugN("foo: finally end");

  }

  DebugN("foo: end");

}     

 

Assignment

Error functions

Availability

UI, CTRL, DP

See also

Top Of Page

 

V 3.11 SP1

Copyright ETM professional control GmbH 2013 All Rights Reserved