]> git.ipfire.org Git - thirdparty/pdns.git/commit
ws: rework exception/error handling 1046/head
authorChristian Hofstaedtler <christian@hofstaedtler.name>
Sat, 5 Oct 2013 17:16:17 +0000 (19:16 +0200)
committerChristian Hofstaedtler <christian@hofstaedtler.name>
Mon, 14 Oct 2013 13:16:52 +0000 (15:16 +0200)
commit331969453f1d2f39dbd8980fd82e08ccb7803f10
tree12401f7082f64a2222d123b4b4829c97315da92e
parentb653a73dc3b479606f0a2782b0b9b35e94f33946
ws: rework exception/error handling

HTTP-level errors now cause HttpExceptions, and generate corresponding
HTTP status replies. Those replies can be served as HTML, JSON or plain
text, depending on what the client wanted.

Also, this gets rid of the old "class Exception", and duplicate catch
statements, because SessionException is a PDNSException already.
pdns/session.cc
pdns/session.hh
pdns/webserver.cc
pdns/webserver.hh
pdns/ws.cc