pub struct SpecRuntimeError {
kind: SpecRuntimeErrorKind,
}Expand description
Fatal typed failure raised by a spec handler while processing one simulation event.
Fields§
§kind: SpecRuntimeErrorKindImplementations§
Source§impl SpecRuntimeError
impl SpecRuntimeError
Sourcepub const fn missing_enemy(enemy: EnemyIdx) -> Self
pub const fn missing_enemy(enemy: EnemyIdx) -> Self
Reports an enemy absent from canonical encounter state.
Sourcepub const fn enemy_death_spatial_removal(
enemy: EnemyIdx,
source: SpatialQueryError,
) -> Self
pub const fn enemy_death_spatial_removal( enemy: EnemyIdx, source: SpatialQueryError, ) -> Self
Wraps a spatial removal failure during enemy death.
Sourcepub fn encounter_stalled(
pull: PullId,
incomplete_required_groups: Vec<GroupId>,
inactive_live_enemies: Vec<EnemyIdx>,
) -> Self
pub fn encounter_stalled( pull: PullId, incomplete_required_groups: Vec<GroupId>, inactive_live_enemies: Vec<EnemyIdx>, ) -> Self
Reports a pull that cannot make further progress.
Sourcepub fn encounter_script(pull: PullId, message: impl Into<String>) -> Self
pub fn encounter_script(pull: PullId, message: impl Into<String>) -> Self
Reports an invalid authored encounter script event.
Sourcepub const fn invalid_empower_rank(
spell_id: u32,
requested_rank: u8,
max_rank: u8,
) -> Self
pub const fn invalid_empower_rank( spell_id: u32, requested_rank: u8, max_rank: u8, ) -> Self
Reports a cast action whose selected empower rank is outside the spell’s stage data.
Sourcepub const fn unresolved_rotation_cast_identity(spell_id: u32) -> Self
pub const fn unresolved_rotation_cast_identity(spell_id: u32) -> Self
Reports a rotation result absent from the finalized cast-binding universe.
Sourcepub const fn unresolved_damage_identity(spell_id: u32, effect_index: u8) -> Self
pub const fn unresolved_damage_identity(spell_id: u32, effect_index: u8) -> Self
Reports a damage action/effect absent from the finalized combat-local universe.
Sourcepub fn damage_target_resolution(
spell_id: u32,
effect_index: u8,
message: impl Into<String>,
) -> Self
pub fn damage_target_resolution( spell_id: u32, effect_index: u8, message: impl Into<String>, ) -> Self
Reports a spatial-state failure while executing a finalized target program.
Sourcepub const fn enemy_death_spatial_removal_details(
&self,
) -> Option<(EnemyIdx, SpatialQueryError)>
pub const fn enemy_death_spatial_removal_details( &self, ) -> Option<(EnemyIdx, SpatialQueryError)>
Returns the enemy and spatial cause for a death-removal failure.
Sourcepub fn encounter_stalled_details(
&self,
) -> Option<(PullId, &[GroupId], &[EnemyIdx])>
pub fn encounter_stalled_details( &self, ) -> Option<(PullId, &[GroupId], &[EnemyIdx])>
Returns the authored pull and incomplete encounter state for a stall failure.
Trait Implementations§
Source§impl Debug for SpecRuntimeError
impl Debug for SpecRuntimeError
Source§impl Display for SpecRuntimeError
impl Display for SpecRuntimeError
Source§impl Error for SpecRuntimeError
impl Error for SpecRuntimeError
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()
Auto Trait Implementations§
impl Freeze for SpecRuntimeError
impl RefUnwindSafe for SpecRuntimeError
impl Send for SpecRuntimeError
impl Sync for SpecRuntimeError
impl Unpin for SpecRuntimeError
impl UnsafeUnpin for SpecRuntimeError
impl UnwindSafe for SpecRuntimeError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> SpecConfig for T
impl<T> SpecConfig for T
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string()] Read more§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString]. Read more