pub enum CliError {
Show 33 variants
UnknownCommand,
UnknownCommandName {
command: String,
next: &'static str,
},
MissingArgument {
argument: &'static str,
next: &'static str,
},
MissingFlagValue {
flag: &'static str,
next: &'static str,
},
DuplicateFlag {
flag: &'static str,
next: &'static str,
},
UnexpectedArgument {
argument: String,
command: &'static str,
next: &'static str,
},
UnknownFlag {
flag: String,
next: &'static str,
},
UnsupportedFlag {
flag: String,
command: &'static str,
next: &'static str,
},
UnknownResource {
resource: String,
next: &'static str,
},
UnknownStatus(String),
UnknownTraceStatus(String),
UnknownLogLevel(String),
InvalidLimit(String),
InvalidMinDuration(String),
UnknownPagination,
InvalidActionCursor(String),
InvalidLogCursor(String),
InvalidIssueCursor(String),
InvalidSupportCursor(String),
UnknownSupportCategory,
InvalidSupportTicketId,
InvalidSupportRetryKey,
InvalidSupportContextReply,
InvalidSupportContextCommand,
InvalidSupportContext,
InvalidInvestigationCommand,
InvalidDoctorCommand,
InvalidProjectCreateCommand,
InvalidProjectsCommand,
InvalidUsageCommand,
InvalidNativeDebugCommand,
InvalidNativeDebugIdentity,
InvalidSetupSource(String),
}Expand description
CLI parsing error.
Variants§
UnknownCommand
Command is missing or unsupported.
UnknownCommandName
Command name is unsupported.
MissingArgument
Required command argument is missing.
MissingFlagValue
Required flag value is missing.
DuplicateFlag
Flag is present more than once.
UnexpectedArgument
Positional argument is unsupported for the selected command.
Fields
UnknownFlag
Flag is unknown for the selected command.
UnsupportedFlag
Flag is known globally but unsupported for the selected command.
Fields
UnknownResource
Resource is unsupported for the selected command.
UnknownStatus(String)
Issue status is unsupported.
UnknownTraceStatus(String)
Trace status is unsupported.
UnknownLogLevel(String)
Log level is unsupported.
InvalidLimit(String)
Row limit is malformed.
InvalidMinDuration(String)
Minimum trace duration is malformed.
UnknownPagination
Pagination mode is unsupported.
InvalidActionCursor(String)
Action cursor fields are inconsistent.
InvalidLogCursor(String)
Log cursor fields are inconsistent.
InvalidIssueCursor(String)
Issue cursor fields are inconsistent.
InvalidSupportCursor(String)
Support-ticket cursor fields are inconsistent.
UnknownSupportCategory
Support-ticket category is unsupported.
InvalidSupportTicketId
Support-ticket identifier is not in the public sup_ form.
InvalidSupportRetryKey
Support context retry key cannot be sent as an HTTP header value.
InvalidSupportContextReply
Support context reply syntax is malformed.
InvalidSupportContextCommand
Support context history syntax is malformed.
InvalidSupportContext
Support context text is blank or exceeds the public limit.
InvalidInvestigationCommand
Issue investigation syntax is malformed.
InvalidDoctorCommand
Project-scoped doctor syntax is malformed.
InvalidProjectCreateCommand
Secure project creation syntax is malformed.
InvalidProjectsCommand
Authenticated project catalog syntax is malformed.
InvalidUsageCommand
Account usage read syntax is malformed.
InvalidNativeDebugCommand
Native debug-artifact command syntax is malformed.
InvalidNativeDebugIdentity
Native debug-artifact identity is not canonical.
InvalidSetupSource(String)
Project setup source is malformed.
Trait Implementations§
impl Eq for CliError
Source§impl Error for CliError
impl Error for CliError
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<CliError> for RuntimeError
impl From<CliError> for RuntimeError
impl StructuralPartialEq for CliError
Auto Trait Implementations§
impl Freeze for CliError
impl RefUnwindSafe for CliError
impl Send for CliError
impl Sync for CliError
impl Unpin for CliError
impl UnsafeUnpin for CliError
impl UnwindSafe 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.