home > 比較編 > Perl, PHP, Python, Ruby > execution control >

ForNext

Only Do What Only You Can Do

165. global variable for last exception

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: $?

PowerShell

Scala

F#

C

C++

C++Builder

VC++

C#

Java

Objective-C

D

VB

VB.NET

Delphi

Ada

PL/SQL

T-SQL

関数型

inserted by FC2 system