Discussion about this post

User's avatar
Abelardo's avatar

I use an object as you did at your last example. This object contains a boolean, a payload (data) and a String (message).

When the boolean is a false, either I print the message by using a System.err or it is sent to a output system (email, local logging, slack channel or whatnot).

Expand full comment
Makoto's avatar

For that reason is that I like the Golang approach. The returns can give yout the error + the result

Expand full comment
3 more comments...

No posts