pub enum CliError {
Show 31 variants
ConnectionFailed {
address: SocketAddr,
source: Error,
},
ConnectionLost,
ConnectionTimeout {
timeout: u64,
},
ActorNotFound {
actor_id: String,
},
ActorStartFailed {
actor_id: String,
reason: String,
},
ActorNotRunning {
actor_id: String,
},
InvalidProjectDirectory {
path: String,
},
BuildFailed {
output: String,
},
MissingTool {
tool: String,
install_command: String,
},
InvalidManifest {
reason: String,
},
ConfigError {
reason: String,
},
TemplateNotFound {
template: String,
available: String,
},
TemplateError {
reason: String,
},
FileOperationFailed {
operation: String,
path: String,
source: Error,
},
PermissionDenied {
operation: String,
path: String,
},
InvalidInput {
field: String,
value: String,
suggestion: String,
},
ValidationError {
reason: String,
},
ServerError {
message: String,
},
ProtocolError {
reason: String,
},
UnexpectedResponse {
response: String,
},
EventStreamError {
reason: String,
},
EventFilterError {
filter: String,
},
Internal(Error),
Serialization(Error),
Io(Error),
NetworkError {
operation: String,
source: Box<dyn Error + Send + Sync>,
},
InvalidResponse {
message: String,
source: Option<Box<dyn Error + Send + Sync>>,
},
IoError {
operation: String,
source: Error,
},
ParseError {
message: String,
},
NotImplemented {
feature: String,
message: String,
},
ManagementError(ManagementError),
}Expand description
Main error type for the Theater CLI
Variants§
ConnectionFailed
Connection-related errors
ConnectionLost
ConnectionTimeout
ActorNotFound
Actor-related errors
ActorStartFailed
ActorNotRunning
InvalidProjectDirectory
Project and build errors
BuildFailed
MissingTool
InvalidManifest
Manifest and configuration errors
ConfigError
TemplateNotFound
Template errors
TemplateError
FileOperationFailed
I/O and filesystem errors
PermissionDenied
InvalidInput
Validation errors
ValidationError
ServerError
Server and protocol errors
ProtocolError
UnexpectedResponse
EventStreamError
Event and monitoring errors
EventFilterError
Internal(Error)
Generic wrapper for other errors
Serialization(Error)
Io(Error)
NetworkError
Network and protocol specific errors
InvalidResponse
IoError
ParseError
NotImplemented
ManagementError(ManagementError)
Implementations§
Source§impl CliError
impl CliError
Sourcepub fn connection_failed(address: SocketAddr, source: impl Into<Error>) -> Self
pub fn connection_failed(address: SocketAddr, source: impl Into<Error>) -> Self
Create a connection failed error
Sourcepub fn actor_not_found(actor_id: impl Into<String>) -> Self
pub fn actor_not_found(actor_id: impl Into<String>) -> Self
Create an actor not found error
Sourcepub fn build_failed(output: impl Into<String>) -> Self
pub fn build_failed(output: impl Into<String>) -> Self
Create a build failed error
Sourcepub fn invalid_manifest(reason: impl Into<String>) -> Self
pub fn invalid_manifest(reason: impl Into<String>) -> Self
Create an invalid manifest error
Sourcepub fn template_not_found(
template: impl Into<String>,
available: Vec<String>,
) -> Self
pub fn template_not_found( template: impl Into<String>, available: Vec<String>, ) -> Self
Create a template not found error
Sourcepub fn file_operation_failed(
operation: impl Into<String>,
path: impl Into<String>,
source: Error,
) -> Self
pub fn file_operation_failed( operation: impl Into<String>, path: impl Into<String>, source: Error, ) -> Self
Create a file operation failed error
Sourcepub fn invalid_input(
field: impl Into<String>,
value: impl Into<String>,
suggestion: impl Into<String>,
) -> Self
pub fn invalid_input( field: impl Into<String>, value: impl Into<String>, suggestion: impl Into<String>, ) -> Self
Create an invalid input error with helpful suggestions
Sourcepub fn invalid_actor_id(actor_id: impl Into<String>) -> Self
pub fn invalid_actor_id(actor_id: impl Into<String>) -> Self
Create an invalid actor ID error
pub fn operation_timeout(_operation: impl Into<String>, timeout: u64) -> Self
Sourcepub fn not_implemented(
feature: impl Into<String>,
message: impl Into<String>,
) -> Self
pub fn not_implemented( feature: impl Into<String>, message: impl Into<String>, ) -> Self
Create a not implemented error
Sourcepub fn management_error(error: ManagementError) -> Self
pub fn management_error(error: ManagementError) -> Self
Create a management error from a Theater server error
Sourcepub fn user_message(&self) -> String
pub fn user_message(&self) -> String
Get a user-friendly error message with potential solutions
Sourcepub fn is_retryable(&self) -> bool
pub fn is_retryable(&self) -> bool
Check if this error suggests the user should retry
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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<ManagementError> for CliError
impl From<ManagementError> for CliError
Source§fn from(source: ManagementError) -> Self
fn from(source: ManagementError) -> Self
Auto Trait Implementations§
impl Freeze for CliError
impl !RefUnwindSafe for CliError
impl Send for CliError
impl Sync for CliError
impl Unpin 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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> Pointable for T
impl<T> Pointable for T
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more