pub enum CliError {
Io(Error),
FileExists(String),
Clap(String),
Generation(String),
Migration(String),
Cache(String),
Scheduler(String),
Generic(String),
}Expand description
CLI 错误
Variants§
Io(Error)
文件 IO 错误(创建文件、读取模板等)
FileExists(String)
文件已存在(对齐 PHP Make::execute 中 already exists! 提示)
Clap(String)
clap 参数解析错误(对齐 PHP console\Input 验证失败)
Generation(String)
代码生成错误(模板替换失败等)
Migration(String)
数据库迁移错误
Cache(String)
缓存清理错误
Scheduler(String)
调度器错误
Generic(String)
通用错误
Trait Implementations§
Source§impl Error for CliError
impl Error for CliError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for CliError
impl !UnwindSafe for CliError
impl Freeze for CliError
impl Send for CliError
impl Sync for CliError
impl Unpin for CliError
impl UnsafeUnpin for CliError
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