ufe 7.0
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 "D:/Jenkins/workspace/EMS/ECG/ufe/full/ufe-full-python3.13-windows/ufe/include/clipboardHandlerExcept.h"
2#ifndef UFE_CLIPBOARDHANDLEREXCEPT_H
3#define UFE_CLIPBOARDHANDLEREXCEPT_H
4
5// ===========================================================================
6// Copyright 2025 Autodesk, Inc. All rights reserved.
7//
8// The use of this software is subject to the Autodesk Terms of Use or other
9// license agreement provided at the time of installation or download, or
10// which otherwise accompanies this software.
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 /* UFE_CLIPBOARDHANDLEREXCEPT_H */
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:202
#define UFE_NS_DEF
Definition: ufe.h:36