pub enum PostError {
Show 19 variants
TicketFileNotFound(String),
OutsideRepository(String),
OutsideTicketDirectory {
path: String,
directory: PathBuf,
},
InvalidTicket {
path: String,
error: FrontmatterError,
},
InvalidTicketFields {
path: String,
problems: Vec<TicketProblem>,
},
InvalidWorktreeStem {
path: String,
reason: String,
},
UnknownBlockedBy {
ticket: String,
blocker: String,
},
DependencyCycle(Vec<String>),
UnknownProject(String),
UnknownTarget(String),
MissingTargetValue {
target: String,
message: String,
},
ProjectConflict {
path: String,
stamped: String,
requested: String,
},
FlowConflict {
path: String,
stamped: String,
requested: String,
},
UnknownFlow {
flow: String,
known: Vec<String>,
},
TicketIdTaken {
id: String,
file: String,
},
Io {
path: String,
source: Error,
},
Source(SourceError),
Store(StoreError),
IdAllocation(IdError),
}Variants§
TicketFileNotFound(String)
OutsideRepository(String)
OutsideTicketDirectory
InvalidTicket
InvalidTicketFields
One or more independent problems with the ticket file itself, reported together. Never empty.
InvalidWorktreeStem
UnknownBlockedBy
DependencyCycle(Vec<String>)
UnknownProject(String)
UnknownTarget(String)
MissingTargetValue
ProjectConflict
FlowConflict
UnknownFlow
TicketIdTaken
Io
Source(SourceError)
Store(StoreError)
IdAllocation(IdError)
Trait Implementations§
Source§impl Error for PostError
impl Error for PostError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<SourceError> for PostError
impl From<SourceError> for PostError
Source§fn from(error: SourceError) -> Self
fn from(error: SourceError) -> Self
Converts to this type from the input type.
Source§impl From<StoreError> for PostError
impl From<StoreError> for PostError
Source§fn from(error: StoreError) -> Self
fn from(error: StoreError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PostError
impl !UnwindSafe for PostError
impl Freeze for PostError
impl Send for PostError
impl Sync for PostError
impl Unpin for PostError
impl UnsafeUnpin for PostError
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
Mutably borrows from an owned value. Read more