#[non_exhaustive]pub enum ModelError {
Show 91 variants
UnsupportedSchemaVersion {
found: u32,
},
TooManyDataSets {
found: usize,
maximum: usize,
},
DuplicateDataSetId(DataSetId),
InvalidDataSet {
data: DataSetId,
problem: DataProblem,
},
InvalidDataBinding {
owner: DataOwner,
at: String,
problem: BindingProblem,
},
EmptyIdentifier,
DuplicateSourceId(SourceId),
DuplicateEffectResourceId(EffectResourceId),
DuplicateTrackId(TrackId),
DuplicateClipId(ClipId),
EmptyLocator {
source: SourceId,
},
AudioOnImage {
source: SourceId,
},
InvalidProvider {
source: SourceId,
},
InvalidFingerprint {
source: SourceId,
},
ContradictoryColor {
source: SourceId,
},
InvalidGenerator {
source: SourceId,
},
InvalidShape {
owner: ShapeOwner,
at: String,
problem: ShapeProblem,
},
InvalidLayout {
owner: ShapeOwner,
at: String,
problem: LayoutProblem,
},
InvalidTextRunStyle {
owner: ShapeOwner,
run: usize,
},
EmptyEffectResourceLocator {
resource: EffectResourceId,
},
UnknownEffectResource {
clip: ClipId,
resource: EffectResourceId,
},
EmptyClipRange {
clip: ClipId,
},
NegativeClipRange {
clip: ClipId,
},
OverlappingClips {
track: TrackId,
first: ClipId,
second: ClipId,
},
UnknownClipSource {
clip: ClipId,
source: SourceId,
},
IncompatibleClipSource {
clip: ClipId,
track: TrackId,
source: SourceId,
},
InvalidVisualProperties {
clip: ClipId,
},
InvalidAudioProperties {
clip: ClipId,
},
InvalidTrackAudio {
track: TrackId,
},
InvalidMasterAudio,
InvalidAudioBus {
bus: BusId,
},
InvalidAudioSend {
from: AudioNodeRef,
to: BusId,
},
UnknownAudioBus {
from: AudioNodeRef,
bus: BusId,
},
DuplicateAudioBus {
bus: BusId,
},
AudioRoutingCycle {
node: AudioNodeRef,
},
TooManyAudioBuses {
found: usize,
maximum: usize,
},
UnknownAudioSidechain {
owner: Option<AudioNodeRef>,
sidechain: AudioNodeRef,
},
UnknownComposition {
clip: ClipId,
composition: CompositionId,
},
InvalidClipComposition {
clip: ClipId,
},
DuplicateCompositionId(CompositionId),
InvalidNodeId {
composition: CompositionId,
node: NodeId,
},
DuplicateNodeId {
composition: CompositionId,
node: NodeId,
},
TooManyCompositionNodes {
composition: CompositionId,
found: usize,
maximum: usize,
},
InvalidNode {
composition: CompositionId,
node: NodeId,
},
UnknownNodeInput {
composition: CompositionId,
node: NodeId,
input: String,
target: NodeId,
},
CompositionCycle {
composition: CompositionId,
node: NodeId,
},
UnknownCompositionOutput {
composition: CompositionId,
node: NodeId,
},
InvalidNodeSource {
composition: CompositionId,
node: NodeId,
source: SourceId,
},
InvalidCompositionPorts {
composition: CompositionId,
},
UnknownGroupComposition {
composition: CompositionId,
node: NodeId,
target: CompositionId,
},
InvalidTimeOffset {
composition: CompositionId,
node: NodeId,
problem: TimeOffsetProblem,
},
CompositionUsesItself {
composition: CompositionId,
},
CompositionNestedTooDeep {
composition: CompositionId,
maximum: usize,
},
TooManyInlinedNodes {
maximum: usize,
},
FrameDrawsTooManyNodes {
clip: ClipId,
found: u64,
maximum: usize,
},
InvalidCompositionSource {
source: SourceId,
},
InvalidAdjustmentSource {
source: SourceId,
},
InvalidAdjustmentTransition {
track: TrackId,
clip: ClipId,
},
InvalidEffect {
owner: Box<EffectOwner>,
id: String,
problem: EffectProblem,
},
UnknownNodeResource {
composition: CompositionId,
node: NodeId,
resource: EffectResourceId,
},
UnknownSourceResource {
source: SourceId,
resource: EffectResourceId,
},
InvalidClipMask {
clip: ClipId,
},
InvalidCaptions {
track: TrackId,
},
UnknownCaptionStyle {
track: TrackId,
cue: usize,
name: String,
},
InvalidCaptionCueStyle {
track: TrackId,
cue: usize,
},
InvalidTimeMap {
clip: ClipId,
problem: TimeMapProblem,
},
TooManyLoopPasses {
clip: ClipId,
found: u64,
maximum: u64,
},
InvalidMatte {
clip: ClipId,
},
InvalidFrameInterpolation {
clip: ClipId,
},
InvalidClipTransition {
track: TrackId,
},
TransitionCycle {
track: TrackId,
at: MediaTime,
},
DuplicateTransition {
track: TrackId,
first: ClipId,
second: ClipId,
},
TooManyDerivedCues {
track: TrackId,
},
UnwritableTime {
ticks: i64,
},
TooManyEffectResources {
found: usize,
maximum: usize,
},
TooManyCompositions {
found: usize,
maximum: usize,
},
TooManySources {
found: usize,
maximum: usize,
},
TooManyTracks {
found: usize,
maximum: usize,
},
TooManyClips {
found: usize,
maximum: usize,
},
TooManyAudioEffects {
found: usize,
maximum: usize,
at_ticks: i64,
},
TooMuchAudioDelay {
found_ms: u64,
maximum_ms: u32,
at_ticks: i64,
},
TooManyClipsOnTrack {
track: TrackId,
found: usize,
maximum: usize,
},
TooManyCaptionCues {
track: TrackId,
found: usize,
maximum: usize,
},
TooManyTransitions {
track: TrackId,
found: usize,
maximum: usize,
},
ZeroCanvasDimension,
CanvasDimensionTooLarge {
width: u32,
height: u32,
maximum: u32,
},
CanvasPixelBudgetExceeded {
pixels: u64,
maximum: u64,
},
InvalidBackground,
InvalidColorPipeline,
InvalidShutter(ShutterProblem),
UnsupportedSampleRate {
found: u32,
minimum: u32,
maximum: u32,
},
}Expand description
A document invariant violation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
UnsupportedSchemaVersion
This build cannot interpret the document version.
TooManyDataSets
The project has more than crate::MAX_DATA_SETS data sets.
DuplicateDataSetId(DataSetId)
Two data sets share one ID.
InvalidDataSet
A data set breaks a rule of its kind.
InvalidDataBinding
A data binding, correction or caption words reference is unusable where it sits.
Fields
at: StringThe property, like visual.position, masks[0].feather, effect.params.radius,
visual.correction or captions.from_words.
problem: BindingProblemWhat is wrong.
EmptyIdentifier
At least one ID was empty.
DuplicateSourceId(SourceId)
Two sources share one ID.
DuplicateEffectResourceId(EffectResourceId)
Two effect resources share one ID.
DuplicateTrackId(TrackId)
Two tracks share one ID.
DuplicateClipId(ClipId)
Two clips share one ID.
EmptyLocator
A source locator was empty.
AudioOnImage
A still image source says it has audio, which no image holds.
InvalidProvider
A source’s provider does not fit it (wrong source kind, audio, or incoherent settings), or a generated source has one.
InvalidFingerprint
A source’s fingerprint is malformed, or a generated source has one.
ContradictoryColor
A source declares a color whose dynamic range contradicts its transfer (HDR is exactly a PQ or HLG transfer).
InvalidGenerator
A generated source has no valid generator, or has a locator, color metadata or audio; or another source has a generator.
InvalidShape
A shapes content tree or mask outline breaks a limit, has a value out of range, or has keyframes that cannot interpolate.
InvalidLayout
A layout tree breaks a limit or structure rule, has a value out of range, or has keyframes that cannot interpolate.
InvalidTextRunStyle
A text generator’s run has a style out of range once applied, or the runs draw in more
than crate::MAX_TEXT_FONT_SELECTIONS font selections from this run on.
Fields
owner: ShapeOwnerWhat holds the text generator.
EmptyEffectResourceLocator
An effect resource locator was empty.
Fields
resource: EffectResourceIdResource whose locator was empty.
UnknownEffectResource
A clip effect references an absent effect resource.
Fields
resource: EffectResourceIdMissing resource identity.
EmptyClipRange
A clip has an empty source or timeline range.
NegativeClipRange
A clip starts before the project or source timeline origin.
OverlappingClips
Two clips overlap without one transition covering their intersection.
Fields
UnknownClipSource
A clip refers to an absent source.
Fields
IncompatibleClipSource
A source cannot be placed on the selected track kind.
Fields
InvalidVisualProperties
A visual clip has non-finite values, invalid opacity, or unordered keyframes.
InvalidAudioProperties
A clip has an invalid gain, pan, fade, or audio effect parameter.
InvalidTrackAudio
A track bus has an invalid gain, pan or effect parameter, or too many sends.
InvalidMasterAudio
The project master bus has an invalid gain, effect, or limiter parameter.
InvalidAudioBus
A bus has an invalid gain, pan or effect parameter, or too many sends.
InvalidAudioSend
A send has an invalid gain.
UnknownAudioBus
An output or send names a bus the project does not have.
DuplicateAudioBus
Two buses share an id.
AudioRoutingCycle
Outputs, sends and effect keys lead from a track or bus back to itself.
Fields
node: AudioNodeRefThe first track or bus, in document order, on a cycle.
TooManyAudioBuses
The project holds more buses than crate::MAX_AUDIO_BUSES.
UnknownAudioSidechain
An effect’s sidechain names a track or bus the project does not have.
Fields
owner: Option<AudioNodeRef>Track or bus whose effect it is; None is the master.
sidechain: AudioNodeRefThe missing track or bus.
UnknownComposition
A clip names an absent composition.
InvalidClipComposition
A clip’s composition has a non-positive scale, reaches a composition time past
alpha2_time::MAX_SERIALIZED_TICKS before the clip ends, or is on an audio clip.
DuplicateCompositionId(CompositionId)
Two compositions share one ID.
InvalidNodeId
A node ID contains /, which is reserved for joining the IDs of inlined group and media
nodes.
DuplicateNodeId
Two nodes of one composition share an ID.
TooManyCompositionNodes
A composition has more nodes than the renderer will schedule.
Fields
composition: CompositionIdThe composition.
InvalidNode
A node has an invalid setting: effect identity, version, parameter or value; transform, progress, opacity or mask out of range; too many merge layers or masks; or a bypass on a node without inputs.
UnknownNodeInput
A node input names a node its composition does not have.
Fields
composition: CompositionIdThe composition.
CompositionCycle
A node depends on its own output.
UnknownCompositionOutput
A composition’s output names a node it does not have.
InvalidNodeSource
A media node names an absent source or one that is not visual.
Fields
composition: CompositionIdThe composition.
InvalidCompositionPorts
A composition’s group inputs are unnamed, repeated or too many, or a control names no effect setting of its nodes or repeats one.
Fields
composition: CompositionIdThe composition.
UnknownGroupComposition
A group node names an absent composition.
Fields
composition: CompositionIdThe composition holding the group node.
target: CompositionIdThe composition it names.
InvalidTimeOffset
A time offset node reads what has no other time.
Fields
composition: CompositionIdThe composition.
problem: TimeOffsetProblemWhat its input reaches.
CompositionUsesItself
A composition uses itself through group nodes or composition sources.
Fields
composition: CompositionIdA composition on the loop.
CompositionNestedTooDeep
Compositions nest, through group nodes, composition sources or time offset nodes, more
than crate::MAX_COMPOSITION_DEPTH deep.
Fields
composition: CompositionIdThe first such composition, in document order.
TooManyInlinedNodes
The compositions draw more than crate::MAX_INLINED_NODES nodes, counting each group
node and composition-source media node as the nodes it draws and each time offset node
as the nodes it draws again.
FrameDrawsTooManyNodes
The clips at one instant draw more than crate::MAX_FRAME_INLINED_NODES composition
nodes together.
Fields
InvalidCompositionSource
A composition source names an absent composition, or has what only a host-supplied source has.
InvalidAdjustmentSource
An adjustment source has more than an ID and its kind: a locator, generator, composition, color, fingerprint, provider or audio.
InvalidAdjustmentTransition
A transition from or to an adjustment clip is not alpha2.transition.fade.
Fields
InvalidEffect
An effect, transition or generator under crate::BUILTIN_EFFECT_PREFIX that does not
match its built-in definition.
UnknownNodeResource
A node’s effect references an absent effect resource.
UnknownSourceResource
A generated source’s effect generator references an absent effect resource.
InvalidClipMask
A clip has more than crate::MAX_CLIP_MASKS masks, a mask with a negative or
non-finite value, or masks on an audio track.
InvalidCaptions
A caption track has no captions, has clips or transitions, or has invalid cues or style; or another track has captions.
UnknownCaptionStyle
A caption cue names a style its track does not have.
Fields
InvalidCaptionCueStyle
A caption cue’s style (its track’s with the cue’s patch applied), or the style of one of
its runs over it, is out of range, or its runs draw in more than
crate::MAX_TEXT_FONT_SELECTIONS font selections.
InvalidTimeMap
A clip’s time map cannot be played: a freeze outside the source range, or a curve with unusable keyframes.
TooManyLoopPasses
A looping clip makes more than crate::MAX_LOOP_PASSES passes.
Fields
InvalidMatte
A clip’s matte names no visual clip, itself, a clip with its own matte, an adjustment clip, or a clip in a transition; or an audio or adjustment clip has a matte.
InvalidFrameInterpolation
A clip outside a video track sets a frame interpolation.
InvalidClipTransition
A transition is not contained in two distinct visual clips on its track.
TransitionCycle
Transitions active at one instant lead from clip to clip in a circle, leaving no clip to show.
Fields
DuplicateTransition
Two clips have more than one transition between them, in either direction.
Fields
TooManyDerivedCues
A caption track derives more than crate::MAX_DERIVED_CUES cues from its words, or maps
more than crate::MAX_DATA_WORDS words through its clips.
UnwritableTime
A time lies past alpha2_time::MAX_SERIALIZED_TICKS either way, which no document holds.
TooManyEffectResources
The project has more than crate::MAX_EFFECT_RESOURCES effect resources.
TooManyCompositions
The project contains too many compositions.
TooManySources
The source table exceeds the bounded project resource budget.
TooManyTracks
The timeline contains too many tracks.
TooManyClips
The timeline contains too many clips in total.
TooManyAudioEffects
More audio effects hold state at once than crate::MAX_AUDIO_EFFECTS (see
crate::Project::audio_effect_load).
Fields
TooMuchAudioDelay
The audio effects hold more than crate::MAX_AUDIO_DELAY_MS of delay at once (see
crate::Project::audio_effect_load).
Fields
TooManyClipsOnTrack
One track contains too many clips.
Fields
TooManyCaptionCues
A caption track holds more than crate::MAX_CLIPS_PER_TRACK cues.
Fields
TooManyTransitions
One track contains too many transitions.
Fields
ZeroCanvasDimension
Width or height was zero.
CanvasDimensionTooLarge
A canvas edge exceeds the portable GPU-independent limit.
CanvasPixelBudgetExceeded
The canvas area exceeds the bounded pixel budget.
InvalidBackground
A background component is non-finite or outside 0..=1.
InvalidColorPipeline
The color pipeline’s HDR peak is outside crate::HDR_PEAK_NITS_RANGE.
InvalidShutter(ShutterProblem)
A field of the project’s shutter is out of range.
UnsupportedSampleRate
The project sample rate is outside the supported DSP interval.
Implementations§
Source§impl ModelError
impl ModelError
Sourcepub const fn subject(&self) -> Option<ErrorSubject<'_>>
pub const fn subject(&self) -> Option<ErrorSubject<'_>>
The document object this error is about, or None for one about the whole project.
An overlap names its second clip, a duplicate transition its track.
Trait Implementations§
Source§impl Clone for ModelError
impl Clone for ModelError
Source§impl Debug for ModelError
impl Debug for ModelError
Source§impl Display for ModelError
impl Display for ModelError
impl Eq for ModelError
Source§impl Error for ModelError
impl Error for ModelError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()