Bio::EnsEMBL
Root
Toolbar
Summary
Bio::EnsEMBL::Root
Package variables
No package variables defined.
Included modules
Synopsis
No synopsis!
Description
Do not use
Bio::EnsEMBL::Root anymore. It is included for backwards
compatibility (every object in EnsEMBL used to inherit from this class)
but will eventually be phased out. The replacement for the _rearrage
method is the rearrange method which can be imported in the following
way:
use Bio::EnsEMBL::Utils::Argument qw(rearrange);
# can now call rearrange as a class method (instead as object method)
my ( $start, $end ) = rearrange( [ 'START', 'END' ], @args );
If you want to use the throw or warn methods the replacement use the
class methods throw and warning from the Bio::EnsEMBL::Utils::Exception
class:
use Bio::EnsEMBL::Utils::Exception qw(throw warning);
# can now call throw or warning even without blessed reference
warning('This is a warning');
throw('This is an exception');
This module was stolen from BioPerl to avoid problems with moving to
BioPerl 1 from 0.7
Methods
Methods description
Methods code
sub new
{ my($caller,@args) = @_;
my $class = ref($caller) || $caller;
return bless({}, $class); } |
sub stack_trace
{ my ($self) = @_;
Bio::EnsEMBL::Utils::Exception->warning("\n------------------ DEPRECATED ---------------------\n".
"Bio::EnsEMBL::Root::stack_trace has been deprecated\n".
"use Bio::EnsEMBL::Utils::Exception qw(stack_trace);\n ".
"stack_trace(); #instead\n".
"\n---------------------------------------------------\n");
Bio::EnsEMBL::Utils::Exception->stack_trace(); } |
sub stack_trace_dump
{ my ($self) = @_;
Bio::EnsEMBL::Utils::Exception->warning("\n------------------ DEPRECATED ---------------------\n".
"Bio::EnsEMBL::Root::stack_trace_dump has been deprecated\n".
"use Bio::EnsEMBL::Utils::Exception qw(stack_trace_dump);\n ".
"stack_trace_dump(); #instead\n".
"\n---------------------------------------------------\n");
Bio::EnsEMBL::Utils::Exception->stack_trace_dump(); } |
sub throw
{ my ($self,$string) = @_;
Bio::EnsEMBL::Utils::Exception->warning("\n------------------ DEPRECATED ---------------------\n".
"Bio::EnsEMBL::Root::throw has been deprecated\n".
"use Bio::EnsEMBL::Utils::Exception qw(throw);\n ".
"throw('message'); #instead\n".
"\n---------------------------------------------------\n");
Bio::EnsEMBL::Utils::Exception->throw($string); } |
sub verbose
{ my ($self,$value) = @_;
Bio::EnsEMBL::Utils::Exception->warning("\n------------------ DEPRECATED ---------------------\n".
"Bio::EnsEMBL::Root::verbose has been deprecated\n".
"use Bio::EnsEMBL::Utils::Exception qw(verbose);\n ".
"verbose(value); #instead\n".
"\n---------------------------------------------------\n");
Bio::EnsEMBL::Utils::Exception->verbose($value); } |
sub warn
{ my ($self,$string) = @_;
Bio::EnsEMBL::Utils::Exception->warning("\n------------------ DEPRECATED ---------------------\n".
"Bio::EnsEMBL::Root::warn has been deprecated\n".
"use Bio::EnsEMBL::Utils::Exception qw(warning);\n ".
"warning('message'); #instead\n".
"\n---------------------------------------------------\n");
Bio::EnsEMBL::Utils::Exception->warning($string); } |
General documentation
Copyright (c) 1999-2009 The European Bioinformatics Institute and
Genome Research Limited. All rights reserved.
This software is distributed under a modified Apache license.
For license details, please see
/info/about/code_licence.html
Originally from Steve Chervitz. Refactored by Ewan Birney.