parrotcode: Auxiliary methods for Exceptions | |
Contents | Libraries |
Parrot::Exception - Auxiliary methods for Exceptions
$Id$
load_bytecode 'Parrot/Exception.pbc'
# ...
$S0 = 'XYZ'
$P0 = getclass 'Exception'
$P1 = $P0.'new'('Error in "', $S0, '" module')
throw $P1
This module provides some additional support for using Parrot's built-in Exception class. The principal method is new
, which simplifies the task of building and populating Exception objects.
Exception
object, initializing its message component to be the concatenation of any arguments supplied. Returns the newly created Exception
.Patrick R. Michaud <pmichaud@pobox.com>
Copyright (C) 2007, The Perl Foundation.
|