[Snap Framework] snap-core branch, master, updated. a0b5853787963aa8cb4b76f17810746e957f0061

noreply at snapframework.com noreply at snapframework.com
Sat Feb 5 14:48:43 CST 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "snap-core".

The branch, master has been updated
       via  a0b5853787963aa8cb4b76f17810746e957f0061 (commit)
      from  6b4fe70169ccac9a6a8f76cd9847918696b3f17b (commit)


Summary of changes:
 src/Snap/Util/FileUploads.hs |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit a0b5853787963aa8cb4b76f17810746e957f0061
Author: Gregory Collins <greg at gregorycollins.net>
Date:   Sat Feb 5 15:48:33 2011 -0500

    Document file upload exception hierarchy

diff --git a/src/Snap/Util/FileUploads.hs b/src/Snap/Util/FileUploads.hs
index eda5e2d..336dca9 100644
--- a/src/Snap/Util/FileUploads.hs
+++ b/src/Snap/Util/FileUploads.hs
@@ -297,6 +297,12 @@ data PartInfo =
 
 
 ------------------------------------------------------------------------------
+-- | All of the exceptions defined in this package inherit from
+-- 'FileUploadException', so if you write
+--
+-- > foo `catch` \(e :: FileUploadException) -> ...
+--
+-- you can catch a 'BadPartException', a 'PolicyViolationException', etc.
 data FileUploadException =
     GenericFileUploadException {
       _genericFileUploadExceptionReason :: Text
-----------------------------------------------------------------------


hooks/post-receive
-- 
snap-core


More information about the Snap mailing list