[Box Backup-commit] [boxbackup/boxbackup] bc3309: Improve exception handling in S3Simulator, S3Clien...

GitHub noreply at github.com
Sun Nov 29 12:04:37 GMT 2015


  Branch: refs/heads/s3_support_merge
  Home:   https://github.com/boxbackup/boxbackup
  Commit: bc3309d67ab5d905d0ea75dcf39b9e0a719693fa
      https://github.com/boxbackup/boxbackup/commit/bc3309d67ab5d905d0ea75dcf39b9e0a719693fa
  Author: Chris Wilson <chris+github at qwirx.com>
  Date:   2015-11-29 (Sun, 29 Nov 2015)

  Changed paths:
    M lib/common/BoxException.h
    M lib/common/CollectInBufferStream.h
    M lib/httpserver/HTTPException.txt
    M lib/httpserver/HTTPServer.cpp
    M lib/httpserver/S3Client.cpp
    M lib/httpserver/S3Simulator.cpp
    M test/httpserver/testhttpserver.cpp

  Log Message:
  -----------
  Improve exception handling in S3Simulator, S3Client and HTTPServer.

Centralise error response generation in S3Simulator, driven by throwing and
catching exceptions.

Improve error messages returned by HTTPServer.

Improve exception messages thrown by S3Client.

Add a method to BoxException to quickly check what type of exception it is,
and a macro to make this even shorter.




More information about the Boxbackup-commit mailing list