Object>>#error: signals an Error Exception which, when not handled, indeed results
in a debugger. You can easily catch the Error. Of course it is better design to signal
more specific exceptions so that they carry more meaning and so that you can handle them
at a finer level.
I think that is a fine situation.
I hope you are not suggestion we should open a dialog directly ?
A well defined exception with a good name and string representation should be clear
enough, no ?
On 28 Nov 2014, at 21:35, Alexandre Bergel
<alexandre.bergel(a)me.com> wrote:
Hi!
It is frequent to see have guard in the style “self error: ‘Have you forget to add
something?’”, to indicate the end user that an API is not properly used.
However, at the execution, it opens a debugger. I have the impression this is not what we
want. We probably something more friendly than a full-fledged debugger.
No?
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev