Loading...
Searching...
No Matches
errors.h
1//
2// Copyright 2016 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7#ifndef PXR_USD_PCP_ERRORS_H
8#define PXR_USD_PCP_ERRORS_H
9
10#include "pxr/pxr.h"
11#include "pxr/usd/pcp/api.h"
12#include "pxr/usd/pcp/site.h"
13#include "pxr/usd/pcp/types.h"
14#include "pxr/usd/sdf/layer.h"
16#include "pxr/usd/sdf/path.h"
17
18#include <memory>
19#include <string>
20#include <vector>
21
22PXR_NAMESPACE_OPEN_SCOPE
23
28enum PcpErrorType {
29 PcpErrorType_ArcCycle,
30 PcpErrorType_ArcPermissionDenied,
31 PcpErrorType_ArcToProhibitedChild,
32 PcpErrorType_IndexCapacityExceeded,
33 PcpErrorType_ArcCapacityExceeded,
34 PcpErrorType_ArcNamespaceDepthCapacityExceeded,
35 PcpErrorType_InconsistentPropertyType,
36 PcpErrorType_InconsistentAttributeType,
37 PcpErrorType_InconsistentAttributeVariability,
38 PcpErrorType_InternalAssetPath,
39 PcpErrorType_InvalidPrimPath,
40 PcpErrorType_InvalidAssetPath,
41 PcpErrorType_InvalidInstanceTargetPath,
42 PcpErrorType_InvalidExternalTargetPath,
43 PcpErrorType_InvalidTargetPath,
44 PcpErrorType_InvalidReferenceOffset,
45 PcpErrorType_InvalidSublayerOffset,
46 PcpErrorType_InvalidSublayerOwnership,
47 PcpErrorType_InvalidSublayerPath,
48 PcpErrorType_InvalidVariantSelection,
49 PcpErrorType_MutedAssetPath,
50 PcpErrorType_InvalidAuthoredRelocation,
51 PcpErrorType_InvalidConflictingRelocation,
52 PcpErrorType_InvalidSameTargetRelocations,
53 PcpErrorType_OpinionAtRelocationSource,
54 PcpErrorType_PrimPermissionDenied,
55 PcpErrorType_PropertyPermissionDenied,
56 PcpErrorType_SublayerCycle,
57 PcpErrorType_TargetPermissionDenied,
58 PcpErrorType_UnresolvedPrimPath,
59 PcpErrorType_VariableExpressionError,
60 PcpErrorType_InvalidSublayerAndOffsetCount
61};
62
63// Forward declarations:
64class PcpErrorBase;
65typedef std::shared_ptr<PcpErrorBase> PcpErrorBasePtr;
66typedef std::vector<PcpErrorBasePtr> PcpErrorVector;
67
73public:
75 PCP_API virtual ~PcpErrorBase();
77 virtual std::string ToString() const = 0;
78
80 const PcpErrorType errorType;
81
87
88protected:
90 explicit PcpErrorBase(PcpErrorType errorType);
91};
92
94
95// Forward declarations:
97typedef std::shared_ptr<PcpErrorArcCycle> PcpErrorArcCyclePtr;
98
104public:
106 static PcpErrorArcCyclePtr New();
108 PCP_API ~PcpErrorArcCycle() override;
110 PCP_API std::string ToString() const override;
111
112 PcpSiteTracker cycle;
113
114private:
117};
118
120
121// Forward declarations:
123typedef std::shared_ptr<PcpErrorArcPermissionDenied>
124 PcpErrorArcPermissionDeniedPtr;
125
132public:
134 static PcpErrorArcPermissionDeniedPtr New();
138 PCP_API std::string ToString() const override;
139
146
147private:
150};
151
153
154// Forward declarations:
156typedef std::shared_ptr<PcpErrorArcToProhibitedChild>
157 PcpErrorArcToProhibitedChildPtr;
158
165public:
167 static PcpErrorArcToProhibitedChildPtr New();
171 PCP_API std::string ToString() const override;
172
182
183private:
186};
187
189
190// Forward declarations:
192typedef std::shared_ptr<PcpErrorCapacityExceeded> PcpErrorCapacityExceededPtr;
193
199public:
201 static PcpErrorCapacityExceededPtr New(PcpErrorType errorType);
203 PCP_API ~PcpErrorCapacityExceeded() override;
205 PCP_API std::string ToString() const override;
206
207private:
210};
211
213
214class PcpErrorInconsistentPropertyBase : public PcpErrorBase {
215public:
217 PCP_API ~PcpErrorInconsistentPropertyBase() override;
218
220 std::string definingLayerIdentifier;
222 SdfPath definingSpecPath;
223
225 std::string conflictingLayerIdentifier;
227 SdfPath conflictingSpecPath;
228
229protected:
231 PcpErrorInconsistentPropertyBase(PcpErrorType errorType);
232};
233
235
236// Forward declarations:
238typedef std::shared_ptr<PcpErrorInconsistentPropertyType>
239 PcpErrorInconsistentPropertyTypePtr;
240
246 public PcpErrorInconsistentPropertyBase {
247public:
249 static PcpErrorInconsistentPropertyTypePtr New();
253 PCP_API std::string ToString() const override;
254
259
260private:
263};
264
266
267// Forward declarations:
269typedef std::shared_ptr<PcpErrorInconsistentAttributeType>
270 PcpErrorInconsistentAttributeTypePtr;
271
277 public PcpErrorInconsistentPropertyBase {
278public:
280 static PcpErrorInconsistentAttributeTypePtr New();
284 PCP_API std::string ToString() const override;
285
290
291private:
294};
295
297
298// Forward declarations:
300typedef std::shared_ptr<PcpErrorInconsistentAttributeVariability>
301 PcpErrorInconsistentAttributeVariabilityPtr;
302
308 public PcpErrorInconsistentPropertyBase {
309public:
311 static PcpErrorInconsistentAttributeVariabilityPtr New();
315 PCP_API std::string ToString() const override;
316
321
322private:
325};
326
328
329// Forward declarations:
331typedef std::shared_ptr<PcpErrorInvalidPrimPath>
332 PcpErrorInvalidPrimPathPtr;
333
339public:
341 static PcpErrorInvalidPrimPathPtr New();
343 PCP_API ~PcpErrorInvalidPrimPath() override;
345 PCP_API std::string ToString() const override;
346
349
352
355 SdfLayerHandle sourceLayer;
356
357 PcpArcType arcType;
358
359private:
362};
363
365
366// Forward declarations:
367class PcpErrorInvalidAssetPathBase;
368typedef std::shared_ptr<PcpErrorInvalidAssetPathBase>
369 PcpErrorInvalidAssetPathBasePtr;
370
371class PcpErrorInvalidAssetPathBase : public PcpErrorBase {
372public:
374 PCP_API ~PcpErrorInvalidAssetPathBase() override;
375
377 PcpSite site;
378
380 SdfPath targetPath;
381
383 std::string assetPath;
384
386 std::string resolvedAssetPath;
387
390 SdfLayerHandle sourceLayer;
391
392 PcpArcType arcType;
393
395 std::string messages;
396
397protected:
399 PcpErrorInvalidAssetPathBase(PcpErrorType errorType);
400};
401
403
404// Forward declarations:
406typedef std::shared_ptr<PcpErrorInvalidAssetPath>
407 PcpErrorInvalidAssetPathPtr;
408
413class PcpErrorInvalidAssetPath : public PcpErrorInvalidAssetPathBase {
414public:
416 static PcpErrorInvalidAssetPathPtr New();
418 PCP_API ~PcpErrorInvalidAssetPath() override;
420 PCP_API std::string ToString() const override;
421
422private:
425};
426
428
429// Forward declarations:
431typedef std::shared_ptr<PcpErrorMutedAssetPath>
432 PcpErrorMutedAssetPathPtr;
433
438class PcpErrorMutedAssetPath : public PcpErrorInvalidAssetPathBase {
439public:
441 static PcpErrorMutedAssetPathPtr New();
443 PCP_API ~PcpErrorMutedAssetPath() override;
445 PCP_API std::string ToString() const override;
446
447private:
450};
451
453
454// Forward declarations:
456typedef std::shared_ptr<PcpErrorTargetPathBase>
457 PcpErrorTargetPathBasePtr;
458
486
488
489// Forward declarations:
491typedef std::shared_ptr<PcpErrorInvalidInstanceTargetPath>
492 PcpErrorInvalidInstanceTargetPathPtr;
493
500public:
502 static PcpErrorInvalidInstanceTargetPathPtr New();
506 PCP_API std::string ToString() const override;
507
508private:
511};
512
514
515// Forward declarations:
517typedef std::shared_ptr<PcpErrorInvalidExternalTargetPath>
518 PcpErrorInvalidExternalTargetPathPtr;
519
526public:
528 static PcpErrorInvalidExternalTargetPathPtr New();
532 PCP_API std::string ToString() const override;
533
534 PcpArcType ownerArcType;
535 SdfPath ownerIntroPath;
536
537private:
540};
541
543
544// Forward declarations:
546typedef std::shared_ptr<PcpErrorInvalidTargetPath>
547 PcpErrorInvalidTargetPathPtr;
548
554public:
556 static PcpErrorInvalidTargetPathPtr New();
558 PCP_API ~PcpErrorInvalidTargetPath() override;
560 PCP_API std::string ToString() const override;
561
562private:
565};
566
568
569// Forward declarations:
571typedef std::shared_ptr<PcpErrorInvalidSublayerOffset>
572 PcpErrorInvalidSublayerOffsetPtr;
573
579public:
581 static PcpErrorInvalidSublayerOffsetPtr New();
585 PCP_API std::string ToString() const override;
586
587 SdfLayerHandle layer;
588 SdfLayerHandle sublayer;
589 SdfLayerOffset offset;
590
591private:
594};
595
597
598// Forward declarations:
600typedef std::shared_ptr<PcpErrorInvalidSublayerAndOffsetCount>
601 PcpErrorInvalidSublayerAndOffsetCountPtr;
602
608public:
610 static PcpErrorInvalidSublayerAndOffsetCountPtr New();
614 PCP_API std::string ToString() const override;
615
616 SdfLayerHandle layer;
617 size_t sublayerCount = 0;
618 size_t offsetCount = 0;
619
620private:
623};
624
626
627// Forward declarations:
629typedef std::shared_ptr<PcpErrorInvalidReferenceOffset>
630 PcpErrorInvalidReferenceOffsetPtr;
631
637public:
639 static PcpErrorInvalidReferenceOffsetPtr New();
643 PCP_API std::string ToString() const override;
644
646 SdfLayerHandle sourceLayer;
647
650
652 std::string assetPath;
653
656
659
660 PcpArcType arcType;
661
662private:
665};
666
668
669// Forward declarations:
671typedef std::shared_ptr<PcpErrorInvalidSublayerOwnership>
672 PcpErrorInvalidSublayerOwnershipPtr;
673
679public:
681 static PcpErrorInvalidSublayerOwnershipPtr New();
685 PCP_API std::string ToString() const override;
686
687 std::string owner;
688 SdfLayerHandle layer;
689 SdfLayerHandleVector sublayers;
690
691private:
694};
695
697
698// Forward declarations:
700typedef std::shared_ptr<PcpErrorInvalidSublayerPath>
701 PcpErrorInvalidSublayerPathPtr;
702
708public:
710 static PcpErrorInvalidSublayerPathPtr New();
714 PCP_API std::string ToString() const override;
715
716 SdfLayerHandle layer;
717 std::string sublayerPath;
718 std::string messages;
719
720private:
723};
724
726
727// Forward declarations:
729typedef std::shared_ptr<PcpErrorRelocationBase>
730 PcpErrorRelocationBasePtr;
731
737public:
739 PCP_API ~PcpErrorRelocationBase() override;
740
741protected:
742 PcpErrorRelocationBase(PcpErrorType errorType);
743};
744
746
747// Forward declarations:
749typedef std::shared_ptr<PcpErrorInvalidAuthoredRelocation>
750 PcpErrorInvalidAuthoredRelocationPtr;
751
757public:
759 static PcpErrorInvalidAuthoredRelocationPtr New();
763 PCP_API std::string ToString() const override;
764
770 SdfLayerHandle layer;
773
775 std::string messages;
776
777private:
779};
780
782
783// Forward declarations:
785typedef std::shared_ptr<PcpErrorInvalidConflictingRelocation>
786 PcpErrorInvalidConflictingRelocationPtr;
787
793public:
795 static PcpErrorInvalidConflictingRelocationPtr New();
799 PCP_API std::string ToString() const override;
800
806 SdfLayerHandle layer;
809
815 SdfLayerHandle conflictLayer;
818
821 enum class ConflictReason {
822 TargetIsConflictSource,
823 SourceIsConflictTarget,
824 TargetIsConflictSourceDescendant,
825 SourceIsConflictSourceDescendant
826 };
827
830
831private:
833};
834
836
837// Forward declarations:
839typedef std::shared_ptr<PcpErrorInvalidSameTargetRelocations>
840 PcpErrorInvalidSameTargetRelocationsPtr;
841
847public:
849 static PcpErrorInvalidSameTargetRelocationsPtr New();
853 PCP_API std::string ToString() const override;
854
857
867
869 std::vector<RelocationSource> sources;
870
871private:
873};
874
876
877// Forward declarations:
879typedef std::shared_ptr<PcpErrorOpinionAtRelocationSource>
880 PcpErrorOpinionAtRelocationSourcePtr;
881
887public:
889 static PcpErrorOpinionAtRelocationSourcePtr New();
893 PCP_API std::string ToString() const override;
894
895 SdfLayerHandle layer;
896 SdfPath path;
897
898private:
901};
902
904
905// Forward declarations:
907typedef std::shared_ptr<PcpErrorPrimPermissionDenied>
908 PcpErrorPrimPermissionDeniedPtr;
909
915public:
917 static PcpErrorPrimPermissionDeniedPtr New();
921 PCP_API std::string ToString() const override;
922
927
928private:
931};
932
934
935// Forward declarations:
937typedef std::shared_ptr<PcpErrorPropertyPermissionDenied>
938 PcpErrorPropertyPermissionDeniedPtr;
939
945public:
947 static PcpErrorPropertyPermissionDeniedPtr New();
951 PCP_API std::string ToString() const override;
952
953 SdfPath propPath;
954 SdfSpecType propType;
955 std::string layerPath;
956
957private:
960};
961
963
964// Forward declarations:
966typedef std::shared_ptr<PcpErrorSublayerCycle> PcpErrorSublayerCyclePtr;
967
973public:
975 static PcpErrorSublayerCyclePtr New();
977 PCP_API ~PcpErrorSublayerCycle() override;
979 PCP_API std::string ToString() const override;
980
981 SdfLayerHandle layer;
982 SdfLayerHandle sublayer;
983
984private:
987};
988
990
991// Forward declarations:
993typedef std::shared_ptr<PcpErrorTargetPermissionDenied>
994 PcpErrorTargetPermissionDeniedPtr;
995
1001public:
1003 static PcpErrorTargetPermissionDeniedPtr New();
1007 PCP_API std::string ToString() const override;
1008
1009private:
1012};
1013
1015
1016// Forward declarations:
1018typedef std::shared_ptr<PcpErrorUnresolvedPrimPath>
1019 PcpErrorUnresolvedPrimPathPtr;
1020
1026public:
1028 static PcpErrorUnresolvedPrimPathPtr New();
1032 PCP_API std::string ToString() const override;
1033
1036
1039 SdfLayerHandle sourceLayer;
1040
1042 SdfLayerHandle targetLayer;
1043
1046
1047 PcpArcType arcType;
1048
1049private:
1052};
1053
1055
1056// Forward declarations:
1058typedef std::shared_ptr<PcpErrorVariableExpressionError>
1059 PcpErrorVariableExpressionErrorPtr;
1060
1066public:
1067 static PcpErrorVariableExpressionErrorPtr New();
1068
1069 PCP_API ~PcpErrorVariableExpressionError() override;
1070
1071 PCP_API std::string ToString() const override;
1072
1074 std::string expression;
1075
1077 std::string expressionError;
1078
1081 std::string context;
1082
1084 SdfLayerHandle sourceLayer;
1085
1089
1090private:
1093};
1094
1096
1098PCP_API
1099void PcpRaiseErrors(const PcpErrorVector &errors);
1100
1101PXR_NAMESPACE_CLOSE_SCOPE
1102
1103#endif // PXR_USD_PCP_ERRORS_H
Arcs between PcpNodes that form a cycle.
Definition errors.h:103
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:131
PcpSite site
The site where the invalid arc was expressed.
Definition errors.h:141
PcpSite privateSite
The private, invalid target of the arc.
Definition errors.h:143
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:145
Arcs that were not made between PcpNodes because the target is a prohibited child prim of its parent ...
Definition errors.h:164
PcpSite targetSite
The target site of the invalid arc which is a prohibited child.
Definition errors.h:176
PcpSite site
The site where the invalid arc was expressed.
Definition errors.h:174
PCP_API ~PcpErrorArcToProhibitedChild() override
Destructor.
static PcpErrorArcToProhibitedChildPtr New()
Returns a new error object.
PCP_API std::string ToString() const override
Converts error to string message.
PcpArcType arcType
The type of arc.
Definition errors.h:181
PcpSite relocationSourceSite
The site of the node under targetSite that is a relocation source in its layer stack.
Definition errors.h:179
Base class for all error types.
Definition errors.h:72
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:86
PcpErrorBase(PcpErrorType errorType)
Constructor.
const PcpErrorType errorType
The error code.
Definition errors.h:80
Exceeded the capacity for composition arcs at a single site.
Definition errors.h:198
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:277
TfToken definingValueType
The value type from the defining spec.
Definition errors.h:287
TfToken conflictingValueType
The value type from the conflicting spec.
Definition errors.h:289
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:308
SdfVariability definingVariability
The variability of the defining spec.
Definition errors.h:318
PCP_API ~PcpErrorInconsistentAttributeVariability() override
Destructor.
static PcpErrorInconsistentAttributeVariabilityPtr New()
Returns a new error object.
SdfVariability conflictingVariability
The variability of the conflicting spec.
Definition errors.h:320
PCP_API std::string ToString() const override
Converts error to string message.
Properties that have specs with conflicting definitions.
Definition errors.h:246
static PcpErrorInconsistentPropertyTypePtr New()
Returns a new error object.
SdfSpecType definingSpecType
The type of the defining spec.
Definition errors.h:256
SdfSpecType conflictingSpecType
The type of the conflicting spec.
Definition errors.h:258
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:413
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:756
SdfPath owningPath
The path to the prim where the relocates is authored.
Definition errors.h:772
SdfLayerHandle layer
The layer containing the authored relocates.
Definition errors.h:770
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:775
SdfPath sourcePath
The source path of the invalid relocation.
Definition errors.h:766
static PcpErrorInvalidAuthoredRelocationPtr New()
Returns a new error object.
SdfPath targetPath
The target path of the invalid relocation.
Definition errors.h:768
Relocation conflicts with another relocation in the layer stack.
Definition errors.h:792
SdfPath conflictOwningPath
The path to the prim where the relocation this conflicts with is authored.
Definition errors.h:817
SdfPath owningPath
The path to the prim where the relocates is authored.
Definition errors.h:808
static PcpErrorInvalidConflictingRelocationPtr New()
Returns a new error object.
ConflictReason
Enumeration of reasons a relocate can be in conflict with another relocate.
Definition errors.h:821
SdfPath conflictSourcePath
The source path of the relocation this conflicts with.
Definition errors.h:811
SdfLayerHandle layer
The layer containing the authored relocates.
Definition errors.h:806
ConflictReason conflictReason
The reason the relocate is a conflict.
Definition errors.h:829
SdfLayerHandle conflictLayer
The layer containing the authored relocation this conflicts with.
Definition errors.h:815
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:813
SdfPath sourcePath
The source path of the invalid relocation.
Definition errors.h:802
SdfPath targetPath
The target path of the invalid relocation.
Definition errors.h:804
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:525
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:499
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:338
SdfPath primPath
The target prim path of the arc that is invalid.
Definition errors.h:351
static PcpErrorInvalidPrimPathPtr New()
Returns a new error object.
PcpSite site
The site where the invalid arc was expressed.
Definition errors.h:348
SdfLayerHandle sourceLayer
The source layer of the spec that caused this arc to be introduced.
Definition errors.h:355
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:636
SdfLayerHandle sourceLayer
The source layer of the spec that caused this arc to be introduced.
Definition errors.h:646
SdfLayerOffset offset
The invalid layer offset expressed on the arc.
Definition errors.h:658
static PcpErrorInvalidReferenceOffsetPtr New()
Returns a new error object.
std::string assetPath
Target asset path of the arc.
Definition errors.h:652
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:649
SdfPath targetPath
Target prim path of the arc.
Definition errors.h:655
PCP_API ~PcpErrorInvalidReferenceOffset() override
Destructor.
Multiple relocations in the layer stack have the same target.
Definition errors.h:846
std::vector< RelocationSource > sources
The sources of all relocates that relocate to the target path.
Definition errors.h:869
PCP_API ~PcpErrorInvalidSameTargetRelocations() override
Destructor.
SdfPath owningPath
The path to the prim where the relocates is authored.
Definition errors.h:865
SdfLayerHandle layer
The layer containing the authored relocates.
Definition errors.h:863
PCP_API std::string ToString() const override
Converts error to string message.
SdfPath sourcePath
The source path of the invalid relocation.
Definition errors.h:861
SdfPath targetPath
The target path of the multiple invalid relocations.
Definition errors.h:856
static PcpErrorInvalidSameTargetRelocationsPtr New()
Returns a new error object.
Info about each relocate source that has the same target path.
Definition errors.h:859
Invalid sublayer and offset counts in a layer stack.
Definition errors.h:607
PCP_API ~PcpErrorInvalidSublayerAndOffsetCount() override
Destructor.
PCP_API std::string ToString() const override
Converts error to string message.
static PcpErrorInvalidSublayerAndOffsetCountPtr New()
Returns a new error object.
Sublayers that use invalid layer offsets.
Definition errors.h:578
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:678
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:707
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:553
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:438
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:886
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:914
PcpSite site
The site where the invalid arc was expressed.
Definition errors.h:924
PCP_API ~PcpErrorPrimPermissionDenied() override
Destructor.
PcpSite privateSite
The private, invalid target of the arc.
Definition errors.h:926
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:944
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:736
PCP_API ~PcpErrorRelocationBase() override
Destructor.
Layers that recursively sublayer themselves.
Definition errors.h:972
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:463
SdfPath owningPath
The path to the property where the target was authored.
Definition errors.h:471
SdfLayerHandle layer
The layer containing the property where the target was authored.
Definition errors.h:475
PCP_API ~PcpErrorTargetPathBase() override
Destructor.
SdfPath composedTargetPath
The target or connection path in the composed scene.
Definition errors.h:481
SdfSpecType ownerSpecType
The spec type of the property where the target was authored.
Definition errors.h:473
SdfPath targetPath
The invalid target or connection path that was authored.
Definition errors.h:469
Paths with illegal opinions about private targets.
Definition errors.h:1000
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:1025
PcpSite site
The site where the invalid arc was expressed.
Definition errors.h:1035
PCP_API ~PcpErrorUnresolvedPrimPath() override
Destructor.
SdfLayerHandle targetLayer
The target layer of the arc.
Definition errors.h:1042
SdfLayerHandle sourceLayer
The source layer of the spec that caused this arc to be introduced.
Definition errors.h:1039
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:1045
Error when evaluating a variable expression.
Definition errors.h:1065
SdfLayerHandle sourceLayer
The source layer where the expression was authored.
Definition errors.h:1084
std::string expression
The expression that was evaluated.
Definition errors.h:1074
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:1088
std::string expressionError
The error generated during evaluation.
Definition errors.h:1077
std::string context
The context where the expression was authored, e.g.
Definition errors.h:1081
A site specifies a path in a layer stack of scene description.
Definition site.h:29
Represents a time offset and scale between layers.
Definition layerOffset.h:44
A path value used to locate objects in layers or scenegraphs.
Definition path.h:281
Token for efficient comparison, assignment, and hashing of known strings.
Definition token.h:81
std::vector< PcpSiteTrackerSegment > PcpSiteTracker
Represents a single path through the composition tree.
Definition types.h:111
PcpArcType
Describes the type of arc connecting two nodes in the prim index.
Definition types.h:27
SdfSpecType
An enum that specifies the type of an object.
Definition types.h:73
SdfVariability
An enum that identifies variability types for attributes.
Definition types.h:161