GX::Exception::StackTrace::Frame

Module Version: 0.2000_01

NAME

GX::Exception::StackTrace::Frame - Stack trace frame class

SYNOPSIS

None.

DESCRIPTION

This module provides the GX::Exception::StackTrace::Frame class.

METHODS

Constructor

new

Returns a new GX::Exception::StackTrace::Frame object.

$frame = GX::Exception::StackTrace::Frame->new( $level, @info );
Arguments:
  • $level ( integer )

    An integer identifying the position of the frame in the stack.

  • @info ( scalars )

    The frame information as provided by caller( $offset ).

Returns:

Public Methods

as_string

Returns a text representation of the stack frame.

$string = $frame->as_string;
Returns:
  • $string ( string )

bitmask

Returns the bitmask frame information as provided by caller().

$value = $frame->bitmask;
Returns:
  • $value ( scalar )

evaltext

Returns the evaltext frame information as provided by caller().

$value = $frame->evaltext;
Returns:
  • $value ( scalar )

filename

Returns the filename frame information as provided by caller().

$value = $frame->filename;
Returns:
  • $value ( scalar )

hasargs

Returns the hasargs frame information as provided by caller().

$value = $frame->hasargs;
Returns:
  • $value ( scalar )

hinthash

Returns the hinthash frame information as provided by caller().

$value = $frame->hinthash;
Returns:
  • $value ( scalar )

hints

Returns the hints frame information as provided by caller().

$value = $frame->hints;
Returns:
  • $value ( scalar )

info

Returns a list with the stack frame information as provided by caller().

@info = $frame->info;
Returns:
  • @info ( scalars )

is_require

Returns the is_require frame information as provided by caller().

$value = $frame->is_require;
Returns:
  • $value ( scalar )

level

Returns the position of the frame in the stack.

$level = $frame->level;
Returns:
  • $level ( integer )

line

Returns the line frame information as provided by caller().

$value = $frame->line;
Returns:
  • $value ( scalar )

package

Returns the package frame information as provided by caller().

$value = $frame->package;
Returns:
  • $value ( scalar )

subroutine

Returns the subroutine frame information as provided by caller().

$value = $frame->subroutine;
Returns:
  • $value ( scalar )

wantarray

Returns the wantarray frame information as provided by caller().

$value = $frame->wantarray;
Returns:
  • $value ( scalar )

AUTHOR

Jörg A. Uzarek <uzarek@runlevelnull.de>

COPYRIGHT AND LICENSE

Copyright © 2009-2011 Jörg A. Uzarek.

This module is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License Version 3 as published by the Free Software Foundation.