pub enum PostError {
Show 20 variants
TicketFileNotFound(String),
OutsideRepository(String),
OutsideTicketDirectory {
path: String,
directory: PathBuf,
},
InvalidTicket {
path: String,
error: FrontmatterError,
},
MissingName {
path: String,
},
MissingBlockedBy {
path: String,
},
InvalidBlockedBy {
path: String,
},
EmptyBody {
path: 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,
},
Store(StoreError),
IdAllocation(IdError),
}Variants§
TicketFileNotFound(String)
OutsideRepository(String)
OutsideTicketDirectory
InvalidTicket
MissingName
MissingBlockedBy
InvalidBlockedBy
EmptyBody
UnknownBlockedBy
DependencyCycle(Vec<String>)
UnknownProject(String)
UnknownTarget(String)
MissingTargetValue
ProjectConflict
FlowConflict
UnknownFlow
TicketIdTaken
Io
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<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