+
+## Example:
+
+ <?php
+ $req = new http\Env\Request;
+
+ try {
+ $messages = $req->splitMultipartBody();
+ } catch (http\Exception\BadMethodCallException $e) {
+ // doh, no multipart message
+ } catch (http\Exception\BadMessageException $e) {
+ // failure while parsing
+ } catch (http\Exception $e) {
+ // here we used the interface to catch any http\Exception
+ } catch (Exception $e) {
+ // catch any other exception (unlikely, though)
+ }
+ ?>