Matt S Trout > Rakudo-Star > rakudo-star/parrot/runtime/parrot/library/Parrot/Exception.pir

Download:
Rakudo-Star-2012.08_001.tar.gz

Annotate this POD

Source  

TITLE ^

Parrot::Exception - Auxiliary methods for Exceptions

SYNOPSIS ^

        load_bytecode 'Parrot/Exception.pbc'
        # ...
        $S0 = 'XYZ'
        $P0 = get_class 'Exception'
        $P1 = $P0.'new'('Error in "', $S0, '" module')
        throw $P1

DESCRIPTION ^

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.

Methods

new([arg, ...])

Build an Exception object, initializing its message component to be the concatenation of any arguments supplied. Returns the newly created Exception.

AUTHOR ^

Patrick R. Michaud <pmichaud@pobox.com>

COPYRIGHT ^

Copyright (C) 2007-2008, Parrot Foundation.

syntax highlighting: