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

ForNext

Only Do What Only You Can Do

166. define exception

VBScript

JScript

Perl

none




PHP

class Bam extends Exception {
  function __construct() {
    parent::__construct("bam!");
  }
}

Python

class Bam(Exception):
  def __init__(self):
    super(Bam, self).__init__('bam!')


Ruby

class Bam < Exception
  def initialize
    super("bam!")
  end
end

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