GX::Exception::StackTrace

Module Version: 0.2000_01

NAME

GX::Exception::StackTrace - Stack trace class

SYNOPSIS

None.

DESCRIPTION

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

METHODS

Constructor

new

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

$stack_trace = GX::Exception::StackTrace->new;
Returns:

Public Methods

add

Adds the given stack frame objects to the stack.

$stack_trace->add( @frames );
Arguments:

as_string

Returns a text representation of the stack strace.

$string = $stack_trace->as_string( $offset );
Arguments:
  • $offset ( integer ) [ optional ]
Returns:
  • $string ( string )

In list context, as_string() returns individual lines of text.

@strings = $stack_trace->as_string( ... );
Returns:
  • @strings ( strings )

build

Builds the stack trace.

$stack_trace->build( $offset );
Arguments:
  • $offset ( integer ) [ optional ]

frames

Returns a list with the individual stack frame objects.

@frames = $stack_trace->frames;
Returns:

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.