ForNext
Only Do What Only You Can Do
165. global variable for last exception
Hyperpolyglot Interpreted Languages: PHP, Perl, Python, Ruby より (2012.05.08)
VBScript
JScript
Perl
$EVAL_ERROR: $@ $OS_ERROR: $! $CHILD_ERROR: $?
PHP
none
Python
last exception: sys.exc_info()[1]
Ruby
last exception: $! backtrace array of exc.: $@ exit status of child: $?