Skip to content

Commit

Permalink
Move docstring to correct position
Browse files Browse the repository at this point in the history
  • Loading branch information
hlship committed Jan 7, 2016
1 parent c909a76 commit 3e953c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io/aviso/exception.clj
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,6 @@
(wrap-exception exception retained-properties nested-exception stack-trace))))

(defn analyze-exception
[^Throwable e options]
"Converts an exception into a seq of maps representing nested exceptions.
The order reflects exception nesting; first exception is the most recently
thrown, last is the deepest, or root, exception ... the initial exception
Expand All @@ -422,6 +421,7 @@
The first property that is assignable to type Throwable (not necessarily the rootCause property)
will be used as the nested exception (for the next map in the sequence)."
[^Throwable e options]
(loop [result []
current e]
(let [[expanded nested] (expand-exception current options)
Expand Down

0 comments on commit 3e953c7

Please sign in to comment.