.. highlightlang:: us .. index:: GetExceptionInfo .. _getexceptioninfo: GetExceptionInfo ================ .. us.tag GetExceptionInfo ENGLISH Programming.Exceptions New300 Changed400 :ref:`GetExceptionInfo` returns the current exception information vector. .. function:: svInfo = GetExceptionInfo() .. us.return **Return Value** *svInfo* is a string vector with 5 elements: .. list-table:: :header-rows: 1 * - Value - Description * - svInfo[1] - Exception-Code * - svInfo[2] - Line number * - svInfo[3] - File name * - svInfo[4] - Exception-String (Error message) * - svInfo[5] - Line with the source code if available .. us.comment **Comment** This function can only be used in try-except blocks (see UniScript User Manual). The try-except blocks must be inside a function. .. us.example **Example** :: def Test() { try { // create exception error("!Sample"); } except(1) { svInfo = GetExceptionInfo(); print svInfo; } } .. seealso:: :ref:`overview-programming`, :ref:`GetExceptionCode`, :ref:`GetExceptionString`, :ref:`error` :sub:`id-1918464`