Bug 1281 : Stacktrace-printing hardcoded in PApplet.java
Last modified: 2010-06-05 10:56




Status:
ASSIGNED
Resolution:
-
Priority:
P3
Severity:
normal

 

Reporter:
taifunbrowser
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2009-06-16 20:44
To increase object-orientedness, could all

e.printStackTrace

be replaced with

printException(Throwable e)

in Papplet.java ? Then those of us wanting to extend the error handling capabilities
(i.e., if we have many registerDraws() that could throw exceptions), we could just
override this single method.
Additional Comment #1 From fry 2009-06-17 03:12
yeah, this is on the todo list but didn't have a bug number assigned to it.
we do this with the die() method that handles fatal exceptions, but i need
to make the implementation more consistent, and add a warn() method that
would handle cases like the one you describe.
This bug is now being tracked here.