Stack traces: Difference between revisions
Content added Content deleted
(Nimrod -> Nim) |
|||
Line 1,094: | Line 1,094: | ||
Fatal error: exception Division_by_zero |
Fatal error: exception Division_by_zero |
||
Raised at file "test.ml", line 4, characters 10-17 |
Raised at file "test.ml", line 4, characters 10-17 |
||
=={{header|Oforth}}== |
|||
Stack trace is only available : |
|||
1) When an exception is raised |
|||
2) And when oforth debug level is at least 1, using --D command line option (oforth --D1) |
|||
Otherwise no stack trace is available nor printed. |
|||
<lang Oforth>func: f1 { Exception throw("An exception") } |
|||
Integer method: f2 { self f1 } |
|||
func: f3(n) { n f2 } |
|||
func: f4(n) { n f3 } |
|||
f4(10)</lang> |
|||
{{out}} |
|||
<pre> |
|||
[1:interpreter] Exception : An exception |
|||
Into Method #throw self = (Exception) An exception |
|||
Into Method #throw self = (Class) Exception |
|||
Into Function #f1 |
|||
Into Method #f2 self = (Integer) 10 |
|||
Into Function #f3 |
|||
</pre> |
|||
=={{header|OxygenBasic}}== |
=={{header|OxygenBasic}}== |