Use of CPAN Module "Error" is deprecated

Bug #1382684 reported by stiV
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Open AS Communication Gateway
New
High
Unassigned

Bug Description

We should not use "Error" anymore, see: http://search.cpan.org/~shlomif/Error-0.17022/lib/Error.pm
"Using the "Error" module is no longer recommended due to the black-magical nature of its syntactic sugar, which often tends to break. Its maintainers have stopped actively writing code that uses it, and discourage people from doing so. See the "SEE ALSO" section below for better recommendations."

We should use "TryCatch" instead.

This means: ANY module that has a "use Error qw(:try);" at the beginning probably uses some "try-catch" in the code, that means deleting that line and changing it to "use TryCatch;" instead and altering the catch statement to incorporate the new style, so

  } catch Underground8::Exception with {
   my $E = shift;

should be changed to
                } catch (Underground8::Exception $E) {
                        #my $E = shift;

Changed in open-as-cgw:
assignee: Open AS Team (open-as-team) → Dominic Schallert (dschallert)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.