Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ensembl
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
ensembl
Commits
89f5d751
Commit
89f5d751
authored
19 years ago
by
Ian Longden
Browse files
Options
Downloads
Patches
Plain Diff
check for arguments as all of Root.pm methods now deprecate to one of these method
parent
1ecd6c11
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/Bio/EnsEMBL/Utils/Argument.pm
+1
-0
1 addition, 0 deletions
modules/Bio/EnsEMBL/Utils/Argument.pm
modules/Bio/EnsEMBL/Utils/Exception.pm
+9
-1
9 additions, 1 deletion
modules/Bio/EnsEMBL/Utils/Exception.pm
with
10 additions
and
1 deletion
modules/Bio/EnsEMBL/Utils/Argument.pm
+
1
−
0
View file @
89f5d751
...
...
@@ -115,6 +115,7 @@ use vars qw(@ISA @EXPORT);
sub
rearrange
{
my
$order
=
shift
;
$order
=
shift
if
(
$order
eq
"
Bio::EnsEMBL::Utils::Argument
");
#skip object if one provided
# If we've got parameters, we need to check to see whether
# they are named or simply listed. If they are listed, we
...
...
This diff is collapsed.
Click to expand it.
modules/Bio/EnsEMBL/Utils/Exception.pm
+
9
−
1
View file @
89f5d751
...
...
@@ -125,7 +125,10 @@ sub throw {
#for backwards compatibility with Bio::EnsEMBL::Root::throw
#allow to be called as an object method as well as class method
#Root function now deprecated so call will have the string instead.
$string
=
shift
if
(
ref
(
$string
));
#skip object if one provided
$string
=
shift
if
(
$string
eq
"
Bio::EnsEMBL::Utils::Exception
");
my
$level
=
shift
;
...
...
@@ -166,9 +169,10 @@ sub throw {
sub
warning
{
my
$string
=
shift
;
$string
=
shift
if
(
$string
eq
"
Bio::EnsEMBL::Utils::Exception
");
#skip object if one provided
my
$level
=
shift
;
$level
=
$DEFAULT_WARNING
if
(
!
defined
(
$level
));
$level
=
$DEFAULT_WARNING
if
(
!
defined
(
$level
));
return
if
(
$VERBOSITY
<
$level
);
...
...
@@ -229,6 +233,7 @@ sub warning {
sub
info
{
my
$string
=
shift
;
$string
=
shift
if
(
$string
eq
"
Bio::EnsEMBL::Utils::Exception
");
my
$level
=
shift
;
$level
=
$DEFAULT_INFO
if
(
!
defined
(
$level
));
...
...
@@ -288,6 +293,7 @@ sub info {
sub
verbose
{
if
(
@
_
)
{
my
$verbosity
=
shift
;
$verbosity
=
shift
if
(
$verbosity
eq
"
Bio::EnsEMBL::Utils::Exception
");
if
(
$verbosity
=~
/\d+/
)
{
#check if verbosity is an integer
$VERBOSITY
=
$verbosity
;
}
else
{
...
...
@@ -338,6 +344,7 @@ sub stack_trace_dump{
my
$levels
=
2
;
#default is 2 levels so stack_trace_dump call is not present
$levels
=
shift
if
(
@
_
);
$levels
=
shift
if
(
$levels
eq
"
Bio::EnsEMBL::Utils::Exception
");
$levels
=
1
if
(
$levels
<
1
);
while
(
$levels
)
{
...
...
@@ -413,6 +420,7 @@ my %DEPRECATED;
sub
deprecate
{
my
$mesg
=
shift
;
$mesg
=
shift
if
(
$mesg
eq
"
Bio::EnsEMBL::Utils::Exception
");
#skip object if one provided
my
$level
=
shift
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment