| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- pub type Result<T> = std::result::Result<T, Error>;
- #[repr(u8)]
- #[derive(Debug, Copy, Clone, thiserror::Error)]
- pub enum Error {
- #[error("Invalid scene path")]
- InvalidScenePath = 1,
- #[error("Node not found")]
- NodeNotFound = 2,
- #[error("Child node not found")]
- ChildNodeNotFound = 3,
- #[error("Parent node not found")]
- ParentNodeNotFound = 4,
- #[error("Property already exists")]
- PropertyAlreadyExists = 5,
- #[error("Property not found")]
- PropertyNotFound = 6,
- #[error("Property has wrong type")]
- PropertyWrongType = 7,
- #[error("Property has wrong subtype")]
- PropertyWrongSubType = 8,
- #[error("Property value has the wrong length")]
- PropertyWrongLen = 9,
- #[error("Property index is wrong")]
- PropertyWrongIndex = 10,
- #[error("Property out of range")]
- PropertyOutOfRange = 11,
- #[error("Property null not allowed")]
- PropertyNullNotAllowed = 12,
- #[error("Property S-exprs not allowed")]
- PropertySExprNotAllowed = 13,
- #[error("Property array is bounded length")]
- PropertyIsBounded = 14,
- #[error("Property enum item is invalid")]
- PropertyWrongEnumItem = 15,
- #[error("Signal already exists")]
- SignalAlreadyExists = 16,
- #[error("Signal not found")]
- SignalNotFound = 17,
- #[error("Slot not found")]
- SlotNotFound = 18,
- #[error("Signal already exists")]
- MethodAlreadyExists = 19,
- #[error("Method not found")]
- MethodNotFound = 20,
- #[error("Nodes are not linked")]
- NodesAreLinked = 21,
- #[error("Nodes are not linked")]
- NodesNotLinked = 22,
- #[error("Node has parents")]
- NodeHasParents = 23,
- #[error("Node has children")]
- NodeHasChildren = 24,
- #[error("Node has a parent with this name")]
- NodeParentNameConflict = 25,
- #[error("Node has a child with this name")]
- NodeChildNameConflict = 26,
- #[error("Node has a sibling with this name")]
- NodeSiblingNameConflict = 27,
- #[error("File not found")]
- FileNotFound = 28,
- #[error("Resource is not found")]
- ResourceNotFound = 29,
- #[error("Python expr eval error")]
- PyEvalErr = 30,
- #[error("Empty S-expr")]
- SExprEmpty = 31,
- #[error("S-expr global not found")]
- SExprGlobalNotFound = 32,
- }
|