Differences

This shows you the differences between two versions of the page.

Link to this comparison view

wiki:scripting_portal:trycatch [2018/10/23 04:24]
Royale Mobian created
wiki:scripting_portal:trycatch [2018/10/23 04:25] (current)
Royale Mobian
Line 48: Line 48:
 ==== Related built-in functions ==== ==== Related built-in functions ====
 <code ossl> <code ossl>
-       ​string xmrExceptionMessage(exception)+       ​string xmrExceptionMessage(exception) ​
 </​code>​ </​code>​
 <code ossl>​  ​   <code ossl>​  ​  
            get an human readable error message associated with the exception.            get an human readable error message associated with the exception.
 </​code>​ </​code>​
-<code ossl>  +<code ossl> 
-     +         ​string xmrExceptionStackTrace(exception)
-       string xmrExceptionStackTrace(exception)+
 </​code>​ </​code>​
            gets a string indicating where in the script the exception occurred.            gets a string indicating where in the script the exception occurred.
 <code ossl> <code ossl>
-       ​object xmrExceptionThrownValue(exception)+       ​object xmrExceptionThrownValue(exception) ​
 </​code>​ </​code>​
            given the value from the catch clause, return the object from the             given the value from the catch clause, return the object from the 
Line 66: Line 65:
            ​throws an "​InvalidCastException"​.            ​throws an "​InvalidCastException"​.
 <code ossl> <code ossl>
-       ​string xmrExceptionTypeName(exception)+       ​string xmrExceptionTypeName(exception) ​
  
            given the value from the catch clause, return a string giving the             given the value from the catch clause, return a string giving the 
Line 74: Line 73:
 ==== Example ==== ==== Example ====
 <code ossl> <code ossl>
-   ​yoption arrays;+   ​yoption arrays; ​
    ​yoption trycatch;    ​yoption trycatch;
        ​state_entry ()        ​state_entry ()
Line 113: Line 112:
    }    }
 </​code>​ </​code>​
-...generates this output:+...generates this output: ​
 <code ossl> <code ossl>
    say something so we don't get inlined    say something so we don't get inlined
QR Code
QR Code wiki:scripting_portal:trycatch (generated for current page)