ForNext
Only Do What Only You Can Do
098. throw exception
Hyperpolyglot C++ Style Languages: C++, Objective C, Java, C# より (2012.05.08)
VBScript
JScript
Perl
PHP
Python
Ruby
PowerShell
Scala
F#
C
C++
throw exception();
C++Builder
VC++
C#
throw new System.Exception("failed");
Java
throw new Exception("failed");
Objective-C
NSException *exc = [NSException exceptionWithName:@"error" reason:@"failed" userInfo:nil]; @throw exc;