(defn print-sql-exception
"Prints the contents of an SQLException to stream"
[stream exception]
(.println
stream
(format (str "%s:" \newline
" Message: %s" \newline
" SQLState: %s" \newline
" Error Code: %d")
(.getSimpleName (class exception))
(.getMessage exception)
(.getSQLState exception)
(.getErrorCode exception))))
Comments top
No comments for print-sql-exception. Log in to add a comment.