ufe 5.5
Universal Front End is a DCC-agnostic component that will allow a DCC to browse and edit data in multiple data models
clipboardHandlerExcept.h
Go to the documentation of this file.
1#line 1 "S:/jenkins/workspace/ECP/ufe/ufe-full-python3.11-windows/ufe/include/clipboardHandlerExcept.h"
2#ifndef _clipboardHandlerExcept
3#define _clipboardHandlerExcept
4
5// ===========================================================================
6// Copyright 2024 Autodesk, Inc. All rights reserved.
7//
8// Use of this software is subject to the terms of the Autodesk license
9// agreement provided at the time of installation or download, or which
10// otherwise accompanies this software in either electronic or hard copy form.
11// ===========================================================================
12
13#include "ufe.h"
14
15#include <stdexcept>
16#include <string>
17
19
20#ifdef __clang__
21#pragma clang diagnostic push
22#pragma clang diagnostic ignored "-Wweak-vtables"
23#endif
24
26//
27// See \ref Ufe::InvalidRunTimeName for inline implementation details.
28
29class EmptyClipboardOperation : public std::runtime_error
30{
31public:
33 std::runtime_error(std::string("Empty clipboard ") + operation + std::string(" operation.")) {}
36};
37
39//
40// See \ref Ufe::InvalidRunTimeName for inline implementation details.
41
42class NoClipboardHandler : public std::runtime_error
43{
44public:
46 std::runtime_error(std::string("No clipboard handler for runtime '") + rtName + std::string("'.")) {}
48 ~NoClipboardHandler() override {}
49};
50
52//
53// See \ref Ufe::InvalidRunTimeName for inline implementation details.
54
55class EmptyClipboardSelection: public std::invalid_argument
56{
57public:
59 std::invalid_argument(std::string("Empty clipboard selection for ") + operation + std::string(" operation.")) {}
62};
63
64#ifdef __clang__
65#pragma clang diagnostic pop
66#endif
67
68}
69
70#endif /* _clipboardHandlerExcept */
Exception class to signal empty clipboard operation (cut/copy/paste).
EmptyClipboardOperation(const EmptyClipboardOperation &)=default
EmptyClipboardOperation(const std::string &operation)
Exception class to signal empty clipboard Selection (cut/copy/paste).
EmptyClipboardSelection(const std::string &operation)
EmptyClipboardSelection(const EmptyClipboardSelection &)=default
Exception class to signal no clipboard handler implemented for runtime.
NoClipboardHandler(const std::string &rtName)
NoClipboardHandler(const NoClipboardHandler &)=default
std::string string(const Path &path)
Definition: path.h:201
#define UFE_NS_DEF
Definition: ufe.h:35