~alan-griffiths/mir/mir_surface_state_horizmaximized

« back to all changes in this revision

Viewing changes to src/client/mir_screencast_api.cpp

Log exceptions at client boundary.

Approved by Cemil Azizoglu, PS Jenkins bot, Alberto Aguirre.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 * Authored by: Alexandros Frantzis <alexandros.frantzis@canonical.com>
17
17
 */
18
18
 
 
19
#define MIR_LOG_COMPONENT "MirScreencastAPI"
 
20
 
19
21
#include "mir_toolkit/mir_screencast.h"
20
22
#include "mir_screencast.h"
21
23
#include "mir_connection.h"
22
24
#include "mir/raii.h"
23
25
 
 
26
#include "uncaught.h"
 
27
 
24
28
#include <stdexcept>
25
29
#include <boost/throw_exception.hpp>
26
30
 
70
74
            screencast_uptr.release();
71
75
        }
72
76
    }
73
 
    catch (std::exception const&)
 
77
    catch (std::exception const& ex)
74
78
    {
 
79
        MIR_LOG_UNCAUGHT_EXCEPTION(ex);
75
80
        return nullptr;
76
81
    }
77
82