--

Actually it's not important, I've updated the BaseService and forgot the Child ^^. In my projects I use 2 layers of abstraction: BaseService > ApiService > ChildA...Z. Inside ApiService (open class) I do have that method that can be overriden by ChildService with API error logic (BaseService should be agnostic). For this article I think 2 layers are enaught, that's why I missed that method. Thanks.

(code updated)

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Guilherme Delgado
Guilherme Delgado

Written by Guilherme Delgado

Software Engineer at BlissApplications 🇵🇹 • github.com/GuilhE • When I’m not coding I’m 🧗🏽or 🏄‍♂️

No responses yet

Write a response