Add HTTPException for use in HTTPRequest
authorTim Düsterhus <duesterhus@woltlab.com>
Mon, 17 Oct 2016 11:18:41 +0000 (13:18 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Mon, 17 Oct 2016 11:23:33 +0000 (13:23 +0200)
commit3502a7f58e821807ecaba12406c7ddceb913aa1e
tree9b127d4adfad7ad7acccd0e9668f41884bbec73f
parentd152865a79c1b4e062fd0635af813d6e34c020cb
Add HTTPException for use in HTTPRequest

This exception allows us to easily dump the first few bytes of
the response. This can be helpful in cases where the body
explains what exactly is wrong with our request.

Backwards compatibility is preserved by Exception chaining.
wcfsetup/install/files/lib/util/HTTPRequest.class.php
wcfsetup/install/files/lib/util/exception/HTTPException.class.php [new file with mode: 0644]