Loading...
Searching...
No Matches
errors.h
1//
2// Copyright 2016 Pixar
3//
4// Licensed under the Apache License, Version 2.0 (the "Apache License")
5// with the following modification; you may not use this file except in
6// compliance with the Apache License and the following modification to it:
7// Section 6. Trademarks. is deleted and replaced with:
8//
9// 6. Trademarks. This License does not grant permission to use the trade
10// names, trademarks, service marks, or product names of the Licensor
11// and its affiliates, except as required to comply with Section 4(c) of
12// the License and to reproduce the content of the NOTICE file.
13//
14// You may obtain a copy of the Apache License at
15//
16// http://www.apache.org/licenses/LICENSE-2.0
17//
18// Unless required by applicable law or agreed to in writing, software
19// distributed under the Apache License with the above modification is
20// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
21// KIND, either express or implied. See the Apache License for the specific
22// language governing permissions and limitations under the Apache License.
23//
24#ifndef PXR_USD_PCP_ERRORS_H
25#define PXR_USD_PCP_ERRORS_H
26
27#include "pxr/pxr.h"
28#include "pxr/usd/pcp/api.h"
29#include "pxr/usd/pcp/site.h"
30#include "pxr/usd/pcp/types.h"
31#include "pxr/usd/sdf/layer.h"
33#include "pxr/usd/sdf/path.h"
34
35#include <memory>
36#include <string>
37#include <vector>
38
39PXR_NAMESPACE_OPEN_SCOPE
40
45enum PcpErrorType {
46 PcpErrorType_ArcCycle,
47 PcpErrorType_ArcPermissionDenied,
48 PcpErrorType_IndexCapacityExceeded,
49 PcpErrorType_ArcCapacityExceeded,
50 PcpErrorType_ArcNamespaceDepthCapacityExceeded,
51 PcpErrorType_InconsistentPropertyType,
52 PcpErrorType_InconsistentAttributeType,
53 PcpErrorType_InconsistentAttributeVariability,
54 PcpErrorType_InternalAssetPath,
55 PcpErrorType_InvalidPrimPath,
56 PcpErrorType_InvalidAssetPath,
57 PcpErrorType_InvalidInstanceTargetPath,
58 PcpErrorType_InvalidExternalTargetPath,
59 PcpErrorType_InvalidTargetPath,
60 PcpErrorType_InvalidReferenceOffset,
61 PcpErrorType_InvalidSublayerOffset,
62 PcpErrorType_InvalidSublayerOwnership,
63 PcpErrorType_InvalidSublayerPath,
64 PcpErrorType_InvalidVariantSelection,
65 PcpErrorType_MutedAssetPath,
66 PcpErrorType_InvalidAuthoredRelocation,
67 PcpErrorType_InvalidConflictingRelocation,
68 PcpErrorType_InvalidSameTargetRelocations,
69 PcpErrorType_OpinionAtRelocationSource,
70 PcpErrorType_PrimPermissionDenied,
71 PcpErrorType_PropertyPermissionDenied,
72 PcpErrorType_SublayerCycle,
73 PcpErrorType_TargetPermissionDenied,
74 PcpErrorType_UnresolvedPrimPath,
75 PcpErrorType_VariableExpressionError
76};
77
78// Forward declarations:
79class PcpErrorBase;
80typedef std::shared_ptr<PcpErrorBase> PcpErrorBasePtr;
81typedef std::vector<PcpErrorBasePtr> PcpErrorVector;
82
88public:
90 PCP_API virtual ~PcpErrorBase();
92 virtual std::string ToString() const = 0;
93
95 const PcpErrorType errorType;
96
102
103protected:
105 explicit PcpErrorBase(PcpErrorType errorType);
106};
107
109
110// Forward declarations:
111class PcpErrorArcCycle;
112typedef std::shared_ptr<PcpErrorArcCycle> PcpErrorArcCyclePtr;
113
119public:
121 static PcpErrorArcCyclePtr New();
123 PCP_API ~PcpErrorArcCycle() override;
125 PCP_API std::string ToString() const override;
126
127 PcpSiteTracker cycle;
128
129private:
132};
133
135
136// Forward declarations:
138typedef std::shared_ptr<PcpErrorArcPermissionDenied>
139 PcpErrorArcPermissionDeniedPtr;
140
147public:
149 static PcpErrorArcPermissionDeniedPtr New();
153 PCP_API std::string ToString() const override;
154
161
162private:
165};
166
168
169// Forward declarations:
171typedef std::shared_ptr<PcpErrorCapacityExceeded> PcpErrorCapacityExceededPtr;
172
178public:
180 static PcpErrorCapacityExceededPtr New(PcpErrorType errorType);
182 PCP_API ~PcpErrorCapacityExceeded() override;
184 PCP_API std::string ToString() const override;
185
186private:
189};
190
192
193class PcpErrorInconsistentPropertyBase : public PcpErrorBase {
194public:
196 PCP_API ~PcpErrorInconsistentPropertyBase() override;
197
199 std::string definingLayerIdentifier;
201 SdfPath definingSpecPath;
202
204 std::string conflictingLayerIdentifier;
206 SdfPath conflictingSpecPath;
207
208protected:
210 PcpErrorInconsistentPropertyBase(PcpErrorType errorType);
211};
212
214
215// Forward declarations:
217typedef std::shared_ptr<PcpErrorInconsistentPropertyType>
218 PcpErrorInconsistentPropertyTypePtr;
219
225 public PcpErrorInconsistentPropertyBase {
226public:
228 static PcpErrorInconsistentPropertyTypePtr New();
232 PCP_API std::string ToString() const override;
233
238
239private:
242};
243
245
246// Forward declarations:
248typedef std::shared_ptr<PcpErrorInconsistentAttributeType>
249 PcpErrorInconsistentAttributeTypePtr;
250
256 public PcpErrorInconsistentPropertyBase {
257public:
259 static PcpErrorInconsistentAttributeTypePtr New();
263 PCP_API std::string ToString() const override;
264
269
270private:
273};
274
276
277// Forward declarations:
279typedef std::shared_ptr<PcpErrorInconsistentAttributeVariability>
280 PcpErrorInconsistentAttributeVariabilityPtr;
281
287 public PcpErrorInconsistentPropertyBase {
288public:
290 static PcpErrorInconsistentAttributeVariabilityPtr New();
294 PCP_API std::string ToString() const override;
295
300
301private:
304};
305
307
308// Forward declarations:
310typedef std::shared_ptr<PcpErrorInvalidPrimPath>
311 PcpErrorInvalidPrimPathPtr;
312
318public:
320 static PcpErrorInvalidPrimPathPtr New();
322 PCP_API ~PcpErrorInvalidPrimPath() override;
324 PCP_API std::string ToString() const override;
325
328
331
334 SdfLayerHandle sourceLayer;
335
336 PcpArcType arcType;
337
338private:
341};
342
344
345// Forward declarations:
346class PcpErrorInvalidAssetPathBase;
347typedef std::shared_ptr<PcpErrorInvalidAssetPathBase>
348 PcpErrorInvalidAssetPathBasePtr;
349
350class PcpErrorInvalidAssetPathBase : public PcpErrorBase {
351public:
353 PCP_API ~PcpErrorInvalidAssetPathBase() override;
354
356 PcpSite site;
357
359 SdfPath targetPath;
360
362 std::string assetPath;
363
365 std::string resolvedAssetPath;
366
369 SdfLayerHandle sourceLayer;
370
371 PcpArcType arcType;
372
374 std::string messages;
375
376protected:
378 PcpErrorInvalidAssetPathBase(PcpErrorType errorType);
379};
380
382
383// Forward declarations:
385typedef std::shared_ptr<PcpErrorInvalidAssetPath>
386 PcpErrorInvalidAssetPathPtr;
387
392class PcpErrorInvalidAssetPath : public PcpErrorInvalidAssetPathBase {
393public:
395 static PcpErrorInvalidAssetPathPtr New();
397 PCP_API ~PcpErrorInvalidAssetPath() override;
399 PCP_API std::string ToString() const override;
400
401private:
404};
405
407
408// Forward declarations:
410typedef std::shared_ptr<PcpErrorMutedAssetPath>
411 PcpErrorMutedAssetPathPtr;
412
417class PcpErrorMutedAssetPath : public PcpErrorInvalidAssetPathBase {
418public:
420 static PcpErrorMutedAssetPathPtr New();
422 PCP_API ~PcpErrorMutedAssetPath() override;
424 PCP_API std::string ToString() const override;
425
426private:
429};
430
432
433// Forward declarations:
435typedef std::shared_ptr<PcpErrorTargetPathBase>
436 PcpErrorTargetPathBasePtr;
437
443public:
445 PCP_API ~PcpErrorTargetPathBase() override;
446
454 SdfLayerHandle layer;
455
461
462protected:
463 PcpErrorTargetPathBase(PcpErrorType errorType);
464};
465
467
468// Forward declarations:
470typedef std::shared_ptr<PcpErrorInvalidInstanceTargetPath>
471 PcpErrorInvalidInstanceTargetPathPtr;
472
479public:
481 static PcpErrorInvalidInstanceTargetPathPtr New();
485 PCP_API std::string ToString() const override;
486
487private:
490};
491
493
494// Forward declarations:
496typedef std::shared_ptr<PcpErrorInvalidExternalTargetPath>
497 PcpErrorInvalidExternalTargetPathPtr;
498
505public:
507 static PcpErrorInvalidExternalTargetPathPtr New();
511 PCP_API std::string ToString() const override;
512
513 PcpArcType ownerArcType;
514 SdfPath ownerIntroPath;
515
516private:
519};
520
522
523// Forward declarations:
525typedef std::shared_ptr<PcpErrorInvalidTargetPath>
526 PcpErrorInvalidTargetPathPtr;
527
533public:
535 static PcpErrorInvalidTargetPathPtr New();
537 PCP_API ~PcpErrorInvalidTargetPath() override;
539 PCP_API std::string ToString() const override;
540
541private:
544};
545
547
548// Forward declarations:
550typedef std::shared_ptr<PcpErrorInvalidSublayerOffset>
551 PcpErrorInvalidSublayerOffsetPtr;
552
558public:
560 static PcpErrorInvalidSublayerOffsetPtr New();
564 PCP_API std::string ToString() const override;
565
566 SdfLayerHandle layer;
567 SdfLayerHandle sublayer;
568 SdfLayerOffset offset;
569
570private:
573};
574
576
577// Forward declarations:
579typedef std::shared_ptr<PcpErrorInvalidReferenceOffset>
580 PcpErrorInvalidReferenceOffsetPtr;
581
587public:
589 static PcpErrorInvalidReferenceOffsetPtr New();
593 PCP_API std::string ToString() const override;
594
596 SdfLayerHandle sourceLayer;
597
600
602 std::string assetPath;
603
606
609
610 PcpArcType arcType;
611
612private:
615};
616
618
619// Forward declarations:
621typedef std::shared_ptr<PcpErrorInvalidSublayerOwnership>
622 PcpErrorInvalidSublayerOwnershipPtr;
623
629public:
631 static PcpErrorInvalidSublayerOwnershipPtr New();
635 PCP_API std::string ToString() const override;
636
637 std::string owner;
638 SdfLayerHandle layer;
639 SdfLayerHandleVector sublayers;
640
641private:
644};
645
647
648// Forward declarations:
650typedef std::shared_ptr<PcpErrorInvalidSublayerPath>
651 PcpErrorInvalidSublayerPathPtr;
652
658public:
660 static PcpErrorInvalidSublayerPathPtr New();
664 PCP_API std::string ToString() const override;
665
666 SdfLayerHandle layer;
667 std::string sublayerPath;
668 std::string messages;
669
670private:
673};
674
676
677// Forward declarations:
679typedef std::shared_ptr<PcpErrorRelocationBase>
680 PcpErrorRelocationBasePtr;
681
687public:
689 PCP_API ~PcpErrorRelocationBase() override;
690
691protected:
692 PcpErrorRelocationBase(PcpErrorType errorType);
693};
694
696
697// Forward declarations:
699typedef std::shared_ptr<PcpErrorInvalidAuthoredRelocation>
700 PcpErrorInvalidAuthoredRelocationPtr;
701
707public:
709 static PcpErrorInvalidAuthoredRelocationPtr New();
713 PCP_API std::string ToString() const override;
714
720 SdfLayerHandle layer;
723
725 std::string messages;
726
727private:
729};
730
732
733// Forward declarations:
735typedef std::shared_ptr<PcpErrorInvalidConflictingRelocation>
736 PcpErrorInvalidConflictingRelocationPtr;
737
743public:
745 static PcpErrorInvalidConflictingRelocationPtr New();
749 PCP_API std::string ToString() const override;
750
756 SdfLayerHandle layer;
759
765 SdfLayerHandle conflictLayer;
768
771 enum class ConflictReason {
772 TargetIsConflictSource,
773 SourceIsConflictTarget,
774 TargetIsConflictSourceDescendant,
775 SourceIsConflictSourceDescendant
776 };
777
780
781private:
783};
784
786
787// Forward declarations:
789typedef std::shared_ptr<PcpErrorInvalidSameTargetRelocations>
790 PcpErrorInvalidSameTargetRelocationsPtr;
791
797public:
799 static PcpErrorInvalidSameTargetRelocationsPtr New();
803 PCP_API std::string ToString() const override;
804
807
813 SdfLayerHandle layer;
816 };
817
819 std::vector<RelocationSource> sources;
820
821private:
823};
824
826
827// Forward declarations:
829typedef std::shared_ptr<PcpErrorOpinionAtRelocationSource>
830 PcpErrorOpinionAtRelocationSourcePtr;
831
837public:
839 static PcpErrorOpinionAtRelocationSourcePtr New();
843 PCP_API std::string ToString() const override;
844
845 SdfLayerHandle layer;
846 SdfPath path;
847
848private:
851};
852
854
855// Forward declarations:
857typedef std::shared_ptr<PcpErrorPrimPermissionDenied>
858 PcpErrorPrimPermissionDeniedPtr;
859
865public:
867 static PcpErrorPrimPermissionDeniedPtr New();
871 PCP_API std::string ToString() const override;
872
877
878private:
881};
882
884
885// Forward declarations:
887typedef std::shared_ptr<PcpErrorPropertyPermissionDenied>
888 PcpErrorPropertyPermissionDeniedPtr;
889
895public:
897 static PcpErrorPropertyPermissionDeniedPtr New();
901 PCP_API std::string ToString() const override;
902
903 SdfPath propPath;
904 SdfSpecType propType;
905 std::string layerPath;
906
907private:
910};
911
913
914// Forward declarations:
916typedef std::shared_ptr<PcpErrorSublayerCycle> PcpErrorSublayerCyclePtr;
917
923public:
925 static PcpErrorSublayerCyclePtr New();
927 PCP_API ~PcpErrorSublayerCycle() override;
929 PCP_API std::string ToString() const override;
930
931 SdfLayerHandle layer;
932 SdfLayerHandle sublayer;
933
934private:
937};
938
940
941// Forward declarations:
943typedef std::shared_ptr<PcpErrorTargetPermissionDenied>
944 PcpErrorTargetPermissionDeniedPtr;
945
951public:
953 static PcpErrorTargetPermissionDeniedPtr New();
957 PCP_API std::string ToString() const override;
958
959private:
962};
963
965
966// Forward declarations:
968typedef std::shared_ptr<PcpErrorUnresolvedPrimPath>
969 PcpErrorUnresolvedPrimPathPtr;
970
976public:
978 static PcpErrorUnresolvedPrimPathPtr New();
980 PCP_API ~PcpErrorUnresolvedPrimPath() override;
982 PCP_API std::string ToString() const override;
983
986
989 SdfLayerHandle sourceLayer;
990
992 SdfLayerHandle targetLayer;
993
996
997 PcpArcType arcType;
998
999private:
1002};
1003
1005
1006// Forward declarations:
1008typedef std::shared_ptr<PcpErrorVariableExpressionError>
1009 PcpErrorVariableExpressionErrorPtr;
1010
1016public:
1017 static PcpErrorVariableExpressionErrorPtr New();
1018
1019 PCP_API ~PcpErrorVariableExpressionError() override;
1020
1021 PCP_API std::string ToString() const override;
1022
1024 std::string expression;
1025
1027 std::string expressionError;
1028
1031 std::string context;
1032
1034 SdfLayerHandle sourceLayer;
1035
1039
1040private:
1043};
1044
1046
1048PCP_API
1049void PcpRaiseErrors(const PcpErrorVector &errors);
1050
1051PXR_NAMESPACE_CLOSE_SCOPE
1052
1053#endif // PXR_USD_PCP_ERRORS_H
Arcs between PcpNodes that form a cycle.
Definition: errors.h:118
static PcpErrorArcCyclePtr New()
Returns a new error object.
PCP_API std::string ToString() const override
Converts error to string message.
PCP_API ~PcpErrorArcCycle() override
Destructor.
Arcs that were not made between PcpNodes because of permission restrictions.
Definition: errors.h:146
PcpSite site
The site where the invalid arc was expressed.
Definition: errors.h:156
PcpSite privateSite
The private, invalid target of the arc.
Definition: errors.h:158
static PcpErrorArcPermissionDeniedPtr New()
Returns a new error object.
PCP_API std::string ToString() const override
Converts error to string message.
PCP_API ~PcpErrorArcPermissionDenied() override
Destructor.
PcpArcType arcType
The type of arc.
Definition: errors.h:160
Base class for all error types.
Definition: errors.h:87
virtual PCP_API ~PcpErrorBase()
Destructor.
virtual std::string ToString() const =0
Converts error to string message.
PcpSite rootSite
The site of the composed prim or property being computed when the error was encountered.
Definition: errors.h:101
PcpErrorBase(PcpErrorType errorType)
Constructor.
const PcpErrorType errorType
The error code.
Definition: errors.h:95
Exceeded the capacity for composition arcs at a single site.
Definition: errors.h:177
static PcpErrorCapacityExceededPtr New(PcpErrorType errorType)
Returns a new error object.
PCP_API std::string ToString() const override
Converts error to string message.
PCP_API ~PcpErrorCapacityExceeded() override
Destructor.
Attributes that have specs with conflicting definitions.
Definition: errors.h:256
TfToken definingValueType
The value type from the defining spec.
Definition: errors.h:266
TfToken conflictingValueType
The value type from the conflicting spec.
Definition: errors.h:268
PCP_API ~PcpErrorInconsistentAttributeType() override
Destructor.
PCP_API std::string ToString() const override
Converts error to string message.
static PcpErrorInconsistentAttributeTypePtr New()
Returns a new error object.
Attributes that have specs with conflicting variability.
Definition: errors.h:287
SdfVariability definingVariability
The variability of the defining spec.
Definition: errors.h:297
PCP_API ~PcpErrorInconsistentAttributeVariability() override
Destructor.
static PcpErrorInconsistentAttributeVariabilityPtr New()
Returns a new error object.
SdfVariability conflictingVariability
The variability of the conflicting spec.
Definition: errors.h:299
PCP_API std::string ToString() const override
Converts error to string message.
Properties that have specs with conflicting definitions.
Definition: errors.h:225
static PcpErrorInconsistentPropertyTypePtr New()
Returns a new error object.
SdfSpecType definingSpecType
The type of the defining spec.
Definition: errors.h:235
SdfSpecType conflictingSpecType
The type of the conflicting spec.
Definition: errors.h:237
PCP_API std::string ToString() const override
Converts error to string message.
PCP_API ~PcpErrorInconsistentPropertyType() override
Destructor.
Invalid asset paths used by references or payloads.
Definition: errors.h:392
PCP_API ~PcpErrorInvalidAssetPath() override
Destructor.
PCP_API std::string ToString() const override
Converts error to string message.
static PcpErrorInvalidAssetPathPtr New()
Returns a new error object.
Invalid authored relocation found in a relocates field.
Definition: errors.h:706
SdfPath owningPath
The path to the prim where the relocates is authored.
Definition: errors.h:722
SdfLayerHandle layer
The layer containing the authored relocates.
Definition: errors.h:720
PCP_API ~PcpErrorInvalidAuthoredRelocation() override
Destructor.
PCP_API std::string ToString() const override
Converts error to string message.
std::string messages
Additional messages about the error.
Definition: errors.h:725
SdfPath sourcePath
The source path of the invalid relocation.
Definition: errors.h:716
static PcpErrorInvalidAuthoredRelocationPtr New()
Returns a new error object.
SdfPath targetPath
The target path of the invalid relocation.
Definition: errors.h:718
Relocation conflicts with another relocation in the layer stack.
Definition: errors.h:742
SdfPath conflictOwningPath
The path to the prim where the relocation this conflicts with is authored.
Definition: errors.h:767
SdfPath owningPath
The path to the prim where the relocates is authored.
Definition: errors.h:758
static PcpErrorInvalidConflictingRelocationPtr New()
Returns a new error object.
ConflictReason
Enumeration of reasons a relocate can be in conflict with another relocate.
Definition: errors.h:771
SdfPath conflictSourcePath
The source path of the relocation this conflicts with.
Definition: errors.h:761
SdfLayerHandle layer
The layer containing the authored relocates.
Definition: errors.h:756
ConflictReason conflictReason
The reason the relocate is a conflict.
Definition: errors.h:779
SdfLayerHandle conflictLayer
The layer containing the authored relocation this conflicts with.
Definition: errors.h:765
PCP_API std::string ToString() const override
Converts error to string message.
SdfPath conflictTargetPath
The target path of the relocation this conflicts with.
Definition: errors.h:763
SdfPath sourcePath
The source path of the invalid relocation.
Definition: errors.h:752
SdfPath targetPath
The target path of the invalid relocation.
Definition: errors.h:754
PCP_API ~PcpErrorInvalidConflictingRelocation() override
Destructor.
Invalid target or connection path in some scope that points to an object outside of that scope.
Definition: errors.h:504
PCP_API ~PcpErrorInvalidExternalTargetPath() override
Destructor.
PCP_API std::string ToString() const override
Converts error to string message.
static PcpErrorInvalidExternalTargetPathPtr New()
Returns a new error object.
Invalid target or connection path authored in an inherited class that points to an instance of that c...
Definition: errors.h:478
static PcpErrorInvalidInstanceTargetPathPtr New()
Returns a new error object.
PCP_API std::string ToString() const override
Converts error to string message.
PCP_API ~PcpErrorInvalidInstanceTargetPath() override
Destructor.
Invalid prim paths used by references or payloads.
Definition: errors.h:317
SdfPath primPath
The target prim path of the arc that is invalid.
Definition: errors.h:330
static PcpErrorInvalidPrimPathPtr New()
Returns a new error object.
PcpSite site
The site where the invalid arc was expressed.
Definition: errors.h:327
SdfLayerHandle sourceLayer
The source layer of the spec that caused this arc to be introduced.
Definition: errors.h:334
PCP_API ~PcpErrorInvalidPrimPath() override
Destructor.
PCP_API std::string ToString() const override
Converts error to string message.
References or payloads that use invalid layer offsets.
Definition: errors.h:586
SdfLayerHandle sourceLayer
The source layer of the spec that caused this arc to be introduced.
Definition: errors.h:596
SdfLayerOffset offset
The invalid layer offset expressed on the arc.
Definition: errors.h:608
static PcpErrorInvalidReferenceOffsetPtr New()
Returns a new error object.
std::string assetPath
Target asset path of the arc.
Definition: errors.h:602
PCP_API std::string ToString() const override
Converts error to string message.
SdfPath sourcePath
The source path of the spec that caused this arc to be introduced.
Definition: errors.h:599
SdfPath targetPath
Target prim path of the arc.
Definition: errors.h:605
PCP_API ~PcpErrorInvalidReferenceOffset() override
Destructor.
Multiple relocations in the layer stack have the same target.
Definition: errors.h:796
std::vector< RelocationSource > sources
The sources of all relocates that relocate to the target path.
Definition: errors.h:819
PCP_API ~PcpErrorInvalidSameTargetRelocations() override
Destructor.
SdfPath owningPath
The path to the prim where the relocates is authored.
Definition: errors.h:815
SdfLayerHandle layer
The layer containing the authored relocates.
Definition: errors.h:813
PCP_API std::string ToString() const override
Converts error to string message.
SdfPath sourcePath
The source path of the invalid relocation.
Definition: errors.h:811
SdfPath targetPath
The target path of the multiple invalid relocations.
Definition: errors.h:806
static PcpErrorInvalidSameTargetRelocationsPtr New()
Returns a new error object.
Info about each relocate source that has the same target path.
Definition: errors.h:809
Sublayers that use invalid layer offsets.
Definition: errors.h:557
PCP_API ~PcpErrorInvalidSublayerOffset() override
Destructor.
PCP_API std::string ToString() const override
Converts error to string message.
static PcpErrorInvalidSublayerOffsetPtr New()
Returns a new error object.
Sibling layers that have the same owner.
Definition: errors.h:628
PCP_API ~PcpErrorInvalidSublayerOwnership() override
Destructor.
PCP_API std::string ToString() const override
Converts error to string message.
static PcpErrorInvalidSublayerOwnershipPtr New()
Returns a new error object.
Asset paths that could not be both resolved and loaded.
Definition: errors.h:657
PCP_API ~PcpErrorInvalidSublayerPath() override
Destructor.
PCP_API std::string ToString() const override
Converts error to string message.
static PcpErrorInvalidSublayerPathPtr New()
Returns a new error object.
Invalid target or connection path.
Definition: errors.h:532
PCP_API ~PcpErrorInvalidTargetPath() override
Destructor.
static PcpErrorInvalidTargetPathPtr New()
Returns a new error object.
PCP_API std::string ToString() const override
Converts error to string message.
Muted asset paths used by references or payloads.
Definition: errors.h:417
PCP_API std::string ToString() const override
Converts error to string message.
PCP_API ~PcpErrorMutedAssetPath() override
Destructor.
static PcpErrorMutedAssetPathPtr New()
Returns a new error object.
Opinions were found at a relocation source path.
Definition: errors.h:836
PCP_API ~PcpErrorOpinionAtRelocationSource() override
Destructor.
static PcpErrorOpinionAtRelocationSourcePtr New()
Returns a new error object.
PCP_API std::string ToString() const override
Converts error to string message.
Layers with illegal opinions about private prims.
Definition: errors.h:864
PcpSite site
The site where the invalid arc was expressed.
Definition: errors.h:874
PCP_API ~PcpErrorPrimPermissionDenied() override
Destructor.
PcpSite privateSite
The private, invalid target of the arc.
Definition: errors.h:876
PCP_API std::string ToString() const override
Converts error to string message.
static PcpErrorPrimPermissionDeniedPtr New()
Returns a new error object.
Layers with illegal opinions about private properties.
Definition: errors.h:894
static PcpErrorPropertyPermissionDeniedPtr New()
Returns a new error object.
PCP_API ~PcpErrorPropertyPermissionDenied() override
Destructor.
PCP_API std::string ToString() const override
Converts error to string message.
Base class for composition errors related to relocates.
Definition: errors.h:686
PCP_API ~PcpErrorRelocationBase() override
Destructor.
Layers that recursively sublayer themselves.
Definition: errors.h:922
PCP_API ~PcpErrorSublayerCycle() override
Destructor.
PCP_API std::string ToString() const override
Converts error to string message.
static PcpErrorSublayerCyclePtr New()
Returns a new error object.
Base class for composition errors related to target or connection paths.
Definition: errors.h:442
SdfPath owningPath
The path to the property where the target was authored.
Definition: errors.h:450
SdfLayerHandle layer
The layer containing the property where the target was authored.
Definition: errors.h:454
PCP_API ~PcpErrorTargetPathBase() override
Destructor.
SdfPath composedTargetPath
The target or connection path in the composed scene.
Definition: errors.h:460
SdfSpecType ownerSpecType
The spec type of the property where the target was authored.
Definition: errors.h:452
SdfPath targetPath
The invalid target or connection path that was authored.
Definition: errors.h:448
Paths with illegal opinions about private targets.
Definition: errors.h:950
static PcpErrorTargetPermissionDeniedPtr New()
Returns a new error object.
PCP_API ~PcpErrorTargetPermissionDenied() override
Destructor.
PCP_API std::string ToString() const override
Converts error to string message.
Asset paths that could not be both resolved and loaded.
Definition: errors.h:975
PcpSite site
The site where the invalid arc was expressed.
Definition: errors.h:985
PCP_API ~PcpErrorUnresolvedPrimPath() override
Destructor.
SdfLayerHandle targetLayer
The target layer of the arc.
Definition: errors.h:992
SdfLayerHandle sourceLayer
The source layer of the spec that caused this arc to be introduced.
Definition: errors.h:989
PCP_API std::string ToString() const override
Converts error to string message.
static PcpErrorUnresolvedPrimPathPtr New()
Returns a new error object.
SdfPath unresolvedPath
The prim path that cannot be resolved on the target layer stack.
Definition: errors.h:995
Error when evaluating a variable expression.
Definition: errors.h:1015
SdfLayerHandle sourceLayer
The source layer where the expression was authored.
Definition: errors.h:1034
std::string expression
The expression that was evaluated.
Definition: errors.h:1024
PCP_API std::string ToString() const override
Converts error to string message.
SdfPath sourcePath
The source path where the expression was authored.
Definition: errors.h:1038
std::string expressionError
The error generated during evaluation.
Definition: errors.h:1027
std::string context
The context where the expression was authored, e.g.
Definition: errors.h:1031
A site specifies a path in a layer stack of scene description.
Definition: site.h:46
Represents a time offset and scale between layers.
Definition: layerOffset.h:61
A path value used to locate objects in layers or scenegraphs.
Definition: path.h:290
Token for efficient comparison, assignment, and hashing of known strings.
Definition: token.h:88
PcpArcType
Describes the type of arc connecting two nodes in the prim index.
Definition: types.h:44
std::vector< PcpSiteTrackerSegment > PcpSiteTracker
Represents a single path through the composition tree.
Definition: types.h:128
SdfSpecType
An enum that specifies the type of an object.
Definition: types.h:85
SdfVariability
An enum that identifies variability types for attributes.
Definition: types.h:173