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
pathStringExcept.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/pathStringExcept.h"
2#ifndef UFE_PATHSTRINGEXCEPT_H
3#define UFE_PATHSTRINGEXCEPT_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 EmptyPathSegment : public std::runtime_error
30{
31public:
32 EmptyPathSegment(const std::string& pathString) :
33 std::runtime_error(pathString), fPathString(pathString) {}
35 ~EmptyPathSegment() override {}
36
37 const std::string& pathString() const { return fPathString; }
38
39private:
41};
42
44//
45// See \ref Ufe::InvalidRunTimeName for inline implementation details.
46
47class InvalidPathComponentSeparator : public std::out_of_range
48{
49public:
50 InvalidPathComponentSeparator(char sep, const std::string& segmentString) :
51 std::out_of_range(segmentString), fSeparator(sep),
52 fPathSegmentString(segmentString) {}
55
56 char separator() const { return fSeparator; }
57
58 const std::string& pathSegmentString() const { return fPathSegmentString; }
59
60private:
61 const char fSeparator;
63};
64
66//
67// See \ref Ufe::InvalidRunTimeName for inline implementation details.
68
69class InvalidPath : public std::runtime_error
70{
71public:
72 InvalidPath(const std::string& pathString) :
73 std::runtime_error(pathString), fPathString(pathString) {}
74 InvalidPath(const InvalidPath&) = default;
75 ~InvalidPath() override {}
76
77 const std::string& pathString() const { return fPathString; }
78
79private:
81};
82
83#ifdef __clang__
84#pragma clang diagnostic pop
85#endif
86
87}
88
89#endif /* UFE_PATHSTRINGEXCEPT_H */
Exception class to signal empty path segment in path string.
EmptyPathSegment(const std::string &pathString)
const std::string fPathString
EmptyPathSegment(const EmptyPathSegment &)=default
const std::string & pathString() const
Exception class to signal an unknown path component separator in a path string.
InvalidPathComponentSeparator(char sep, const std::string &segmentString)
InvalidPathComponentSeparator(const InvalidPathComponentSeparator &)=default
const std::string & pathSegmentString() const
Exception class to signal an invalid path.
InvalidPath(const InvalidPath &)=default
~InvalidPath() override
InvalidPath(const std::string &pathString)
const std::string fPathString
const std::string & pathString() const
std::string string(const Path &path)
Definition: path.h:202
#define UFE_NS_DEF
Definition: ufe.h:36