Quick Search
Browse
Pages
Blog
Labels
Attachments
Mail
Advanced
What’s New
Space Directory
Feed Builder
Keyboard Shortcuts
Confluence Gadgets
Log In
Sign Up
Dashboard
Clojure Design
Copy Page
You are not logged in. Any changes you make will be marked as
anonymous
. You may want to
Log In
if you already have an account. You can also
Sign Up
for a new account.
This page is being edited by
.
Paragraph
Paragraph
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Preformatted
Quote
Bold
Italic
Underline
Colour
More colours
Strikethrough
Subscript
Superscript
Monospace
Clear Formatting
Bullet list
Numbered list
Outdent
Indent
Align left
Align center
Align right
Link
Table
Insert
Insert Content
Image
Link
Attachment
Symbol
Emoticon
Wiki Markup
Horizontal rule
tinymce.confluence.insert_menu.macro_desc
Info
JIRA Issue
Status
Gallery
Tasklist
Table of Contents
Other Macros
Undo
Redo
Keyboard Shortcuts Help
<p><span style="color: rgb(255,0,0);">This proposal is subsumed under the first phase of</span> <span style="color: rgb(255,0,0);"><a href="/display/design/Error+Handling" data-linked-resource-id="950768" data-linked-resource-type="page" data-linked-resource-default-alias="Error Handling" data-base-url="http://dev.clojure.org">Error Handling</a></span></p> <p><strong>Goals:</strong></p> <ul> <li>Provide useful stacktraces to end-users</li> <li>Provide stacktraces-as-data to library developers</li> </ul> <p><strong>Approach:</strong></p> <p>Stacktrace handling can be divided into three parts: collecting and parsing the exception data, filtering/transforming that data as appropriate for Clojure, and then rendering that data according to some design.</p> <p>To facilitate steps 2 and 3 for Clojure itself and also for other library developers, we propose to first parse exceptions into Clojure data structures and to provide this data as input to the filtering/transforming and rendering phases.</p> <p>The data-based approach is used by <a href="http://github.com/mmcgrana/clj-stacktrace">clj-stacktrace</a>.</p> <p>clj-stactrace, clojure.repl, and clojure.stacktrace all have <a href="http://gist.github.com/649282">different takes</a> on the formatting aspect of stacktrace presentation.</p> <p><strong>Issues:</strong></p> <ul> <li>Why is :annon-fn three-valued (true, false, and missing)?</li> <li>Is it possible to get full paths instead of filenames under the :file key?</li> <li>Default display format for stacktraces for script and REPL exceptions</li> <li>Details of exception data representation, especially strings vs. non-strings and how to represent different types of trace elements like methods, def'd fns, and closures <ul> <li>SDH: I think names of classes, methods, etc. should be symbols (as opposed to strings). Haven't looked to see what current impls do so this may be moot.</li> </ul> </li> </ul>
Attachments
Labels
Location
< Edit
Preview >
Loading…
Save
Cancel
Next hint
search
attachments
weblink
advanced