pub enum EpicError {
UnknownEpic {
reference: String,
},
UnknownIssue {
selector: u32,
},
DuplicateName {
name: String,
},
InvalidDates {
detail: String,
},
InvalidWeight {
value: i64,
},
InvalidReference {
field: &'static str,
value: String,
},
SelfParent {
epic: EpicId,
},
Cycle {
epic: EpicId,
path: Vec<EpicId>,
},
}Expand description
Why an epic operation was refused.
The variants map one-to-one onto EpicDiagnosticKind and carry the
contract’s names (contracts/epic-service.md §1).
Variants§
UnknownEpic
An epic reference did not resolve.
UnknownIssue
An issue selector named no issue in the snapshot.
DuplicateName
The name is blank, padded, or already in use.
InvalidDates
The start/due dates are malformed or inverted.
InvalidWeight
The weight is not a positive relative size.
InvalidReference
A reference field’s value is not a well-formed id.
Fields
SelfParent
The proposed parent is the epic itself.
Cycle
The proposed parent chain would close a cycle.
Implementations§
Trait Implementations§
impl Eq for EpicError
Source§impl Error for EpicError
impl Error for EpicError
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()
Source§impl From<EpicError> for TixError
An epic refusal becomes user input error, so ? works at the call site.
impl From<EpicError> for TixError
An epic refusal becomes user input error, so ? works at the call site.
The payload is a single-line diagnostic (<kind>: <message>), so it takes the
crate’s existing invalid input: prefix without doubling it — the same
boundary every other selector/validation refusal crosses (cli-surface §6).
impl StructuralPartialEq for EpicError
Auto Trait Implementations§
impl Freeze for EpicError
impl RefUnwindSafe for EpicError
impl Send for EpicError
impl Sync for EpicError
impl Unpin for EpicError
impl UnsafeUnpin for EpicError
impl UnwindSafe for EpicError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more