You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 10, 2023. It is now read-only.
What's the idea behind using exception messages like 'CMP-001: Something bad happpened'?
I always found it a little bit hard to follow, and I remember we even had issues with conflicting codes. If the point is the representation, we could make the exception handler put the code before the message. Something like:
thrownewComponentLoad("Unable to load [$fullName]: Class not found", ComponentLoad::CLASS_NOT_FOUND);
This way we would use the builtin exception code, would track the codes at one place (Exception class), would make changes easier to follow (constants) and would be possible to format the message in a custom exception handler.