1

Didn't find the answer on this doc, is the rescue clause called when redefining a feature?

Class A

class A

feature -- 

    process
        do
            do_stuff
        rescue
            on_fail
        end
end -- class

Class B

class B

inherit
    A
        redefine
            process
        end

feature -- 

    process
        do
            do_other_stuff -- do I have to call the rescue too?
        end
end -- class
zx8754
  • 52,746
  • 12
  • 114
  • 209
Pipo
  • 4,653
  • 38
  • 47

1 Answers1

2

Rescue clauses are not inherited like contracts and should be supplied with every new feature body if needed.

Alexander Kogtenkov
  • 5,770
  • 1
  • 27
  • 35