Lasso Soft Inc. > Home

[ error_stack ]

Method

[error_stack] returns the detailed error reporting for the current error condition.

  • Syntax
error_stack
Examples
  • Beginner

Return the current error stack for a protect block

The following code generates a deliberate error, and returns the error stack with error codes for debugging purposes.

Code

local(x = string)
protect => {
	handle_error => { #x += 'FAILURE: ' + error_code + ' ' + error_msg + '\n' + error_stack}
	hello_world_123
}
#x

Result

FAILURE: -9948 Definition Not Found: hello_world_123()
5:2 adminapp_lasso_runner_thread
4:2 adminapp_lasso_runner_thread
2:11 adminapp_lasso_runner_thread
182:2 error.lasso
182:2 error.lasso
176:2 error.lasso
175:2 error.lasso
3:1 adminapp_lasso_runner_thread
11:18 zip:Admin:/_init.admin.lasso
9:4 zip:Admin:/_init.admin.lasso
25:39 zip:Admin:/quickcode.form[xhr].lasso
182:2 error.lasso
182:2 error.lasso
176:2 error.lasso
175:2 error.lasso
8:3 zip:Admin:/_init.admin.lasso
25:39 zip:Admin:/quickcode.form[xhr].lasso
22:2 zip:Admin:/quickcode.form[xhr].lasso
18:5 zip:Admin:/quickcode.form[xhr].lasso
182:2 error.lasso
182:2 error.lasso
176:2 error.lasso
175:2 error.lasso
21:1 zip:Admin:/quickcode.form[xhr].lasso
77:10 lassoapp.lasso
626:14 lassoapp.lasso
625:2 lassoapp.lasso
624:32 lassoapp.lasso
74:2 lassoapp.lasso
102:17 web_response.lasso
120:13 web_response.lasso
111:4 web_response.lasso
108:4 web_response.lasso
108:4 web_response.lasso
219:19 web_response.lasso
182:2 error.lasso
182:2 error.lasso
176:2 error.lasso
175:2 error.lasso
107:3 web_response.lasso
219:19 web_response.lasso
209:3 web_response.lasso
207:3 web_response.lasso
605:17 web.lasso
182:2 error.lasso
182:2 error.lasso
176:2 error.lasso
175:2 error.lasso
604:2 web.lasso
272:16 fastcgi.lasso
268:3 fastcgi.lasso
264:2 fastcgi.lasso
182:2 error.lasso
182:2 error.lasso
176:2 error.lasso
175:2 error.lasso
266:2 fastcgi.lasso
264:2 fastcgi.lasso
259:2 fastcgi.lasso
259:2 fastcgi.lasso
491:21 fastcgi.lasso

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft