Crell,
@Crell@phpc.social avatar

Errors/Exceptions are domain objects.

clemensprill,

@Crell How could it be otherwise? A good error message is usually domain-specific in its context.

Crell,
@Crell@phpc.social avatar

@clemensprill You'd be horrified by the number of systems that use generic language-level exceptions. (RuntimeException, InvalidArgumentException, just the base Exception, etc.)

But more than that, an error object (incl exception) can and should have meaningful methods and properties on it.

clemensprill,

@Crell That got me actually. I had to think a moment about it. I should keep that in mind. Is there more short wisdom of you somewhere, e. g. blogged?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • programming
  • DreamBathrooms
  • ngwrru68w68
  • tester
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • mdbf
  • tacticalgear
  • JUstTest
  • osvaldo12
  • normalnudes
  • cubers
  • cisconetworking
  • everett
  • GTA5RPClips
  • ethstaker
  • Leos
  • provamag3
  • anitta
  • modclub
  • megavids
  • lostlight
  • All magazines