diff options
| author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-05-17 15:34:44 +0200 |
|---|---|---|
| committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-05-17 15:34:44 +0200 |
| commit | 823d3d570236e32bdbe270306df5602ff586c4a7 (patch) | |
| tree | 88e60e92f4c5bf618588ec0b64f295540390ae8f /docs/index.html | |
| parent | d359e8cf7d71c2f80a1706fef38e603478ac003f (diff) | |
| download | lanes-823d3d570236e32bdbe270306df5602ff586c4a7.tar.gz lanes-823d3d570236e32bdbe270306df5602ff586c4a7.tar.bz2 lanes-823d3d570236e32bdbe270306df5602ff586c4a7.zip | |
Error reporting revamp
* set_error_reporting() is gone
* new lane generator setting error_reporting_level
* basic/extended stack trace is selectable at runtime instead of compile-time
Diffstat (limited to 'docs/index.html')
| -rw-r--r-- | docs/index.html | 32 |
1 files changed, 27 insertions, 5 deletions
diff --git a/docs/index.html b/docs/index.html index 713955f..f34b672 100644 --- a/docs/index.html +++ b/docs/index.html | |||
| @@ -702,6 +702,17 @@ | |||
| 702 | ATTEMPTING TO TRANSFER A FUNCTION REGISTERED BY A MODULE NOT LISTED HERE WILL RAISE AN ERROR. | 702 | ATTEMPTING TO TRANSFER A FUNCTION REGISTERED BY A MODULE NOT LISTED HERE WILL RAISE AN ERROR. |
| 703 | </td> | 703 | </td> |
| 704 | </tr> | 704 | </tr> |
| 705 | <tr id=".error_trace_level" valign=top> | ||
| 706 | <td> | ||
| 707 | <code>.error_trace_level</code> | ||
| 708 | </td> | ||
| 709 | <td>string</td> | ||
| 710 | <td> | ||
| 711 | Sets the error reporting mode. One of <tt>"minimal"</tt> (the default), <tt>"basic"</tt>, <tt>"extended"</tt>.<br /> | ||
| 712 | <tt>"minimal"</tt> yields only the location of the error.<br /> | ||
| 713 | The other 2 yield a full stack trace, with different amounts of data extracted from the debug infos. See <a href="#results">Results</a>. | ||
| 714 | </td> | ||
| 715 | </tr> | ||
| 705 | <tr id=".name" valign=top> | 716 | <tr id=".name" valign=top> |
| 706 | <td> | 717 | <td> |
| 707 | <code>.name</code> | 718 | <code>.name</code> |
| @@ -819,6 +830,21 @@ | |||
| 819 | 830 | ||
| 820 | <!-- status +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | 831 | <!-- status +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
| 821 | <hr/> | 832 | <hr/> |
| 833 | <h2 id="error_trace_level">Error trace level</h2> | ||
| 834 | |||
| 835 | <table border="1" bgcolor="#E0E0FF" cellpadding="10" style="width:50%"> | ||
| 836 | <tr> | ||
| 837 | <td> | ||
| 838 | <pre> str = lane_h.error_trace_level</pre> | ||
| 839 | </td> | ||
| 840 | </tr> | ||
| 841 | </table> | ||
| 842 | <p> | ||
| 843 | Read back the value set during lane generation, one of <tt>"basic", "minimal", "extended"</tt>. | ||
| 844 | </p> | ||
| 845 | |||
| 846 | <!-- status +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | ||
| 847 | <hr/> | ||
| 822 | <h2 id="status">Status</h2> | 848 | <h2 id="status">Status</h2> |
| 823 | 849 | ||
| 824 | <table border="1" bgcolor="#E0E0FF" cellpadding="10" style="width:50%"> | 850 | <table border="1" bgcolor="#E0E0FF" cellpadding="10" style="width:50%"> |
| @@ -926,12 +952,8 @@ | |||
| 926 | <hr/> | 952 | <hr/> |
| 927 | <h2 id="results">Results and errors</h2> | 953 | <h2 id="results">Results and errors</h2> |
| 928 | 954 | ||
| 929 | <table border="1" bgcolor="#E0E0FF" cellpadding="10" style="width:50%"><tr><td><pre> | ||
| 930 | set_error_reporting("basic"|"extended") | ||
| 931 | </pre></td></tr></table> | ||
| 932 | |||
| 933 | <p> | 955 | <p> |
| 934 | Sets the error reporting mode. "basic" is selected by default. | 956 | Error reporting level is set in the lane generator <a href="#.error_trace_level">settings</a>. |
| 935 | </p> | 957 | </p> |
| 936 | 958 | ||
| 937 | <p> | 959 | <p> |
