[Box Backup-commit] [boxbackup/boxbackup] a2948d: Improve exception handling in S3Simulator

GitHub noreply at github.com
Mon Nov 14 16:48:20 GMT 2016


  Branch: refs/heads/s3_virtual_host_name
  Home:   https://github.com/boxbackup/boxbackup
  Commit: a2948d49fbdbbdf862d4fc48517614fda2761129
      https://github.com/boxbackup/boxbackup/commit/a2948d49fbdbbdf862d4fc48517614fda2761129
  Author: Chris Wilson <chris+github at qwirx.com>
  Date:   2016-11-14 (Mon, 14 Nov 2016)

  Changed paths:
    M lib/common/BoxException.h
    M lib/httpserver/HTTPException.txt
    M lib/httpserver/S3Simulator.cpp

  Log Message:
  -----------
  Improve exception handling in S3Simulator

Centralise error response generationImprove exception handling in S3Simulator,
driven by throwing and catching exceptions.

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