pub struct LambdaErrorHandler { /* private fields */ }Expand description
Lambda-specific error handling pipeline with automatic conversion from Python errors
Implementations§
Source§impl LambdaErrorHandler
impl LambdaErrorHandler
pub fn new() -> Self
pub fn with_strategy(self, strategy: ErrorHandlingStrategy) -> Self
Sourcepub fn generate_error_handling_code(&self) -> Result<ErrorConversionCode>
pub fn generate_error_handling_code(&self) -> Result<ErrorConversionCode>
Generate error handling code for Lambda functions
Sourcepub fn generate_handler_wrapper(&self, handler_name: &str) -> String
pub fn generate_handler_wrapper(&self, handler_name: &str) -> String
Generate error handling wrapper for handler functions
Sourcepub fn generate_retry_logic(&self) -> String
pub fn generate_retry_logic(&self) -> String
Generate retry logic for Lambda functions
Sourcepub fn add_error_mapping(
&mut self,
pattern: PythonErrorPattern,
mapping: LambdaErrorMapping,
)
pub fn add_error_mapping( &mut self, pattern: PythonErrorPattern, mapping: LambdaErrorMapping, )
Add custom error mapping
Sourcepub fn get_error_mapping(
&self,
pattern: &PythonErrorPattern,
) -> Option<&LambdaErrorMapping>
pub fn get_error_mapping( &self, pattern: &PythonErrorPattern, ) -> Option<&LambdaErrorMapping>
Get error mapping for a Python error pattern
Trait Implementations§
Source§impl Clone for LambdaErrorHandler
impl Clone for LambdaErrorHandler
Source§fn clone(&self) -> LambdaErrorHandler
fn clone(&self) -> LambdaErrorHandler
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LambdaErrorHandler
impl Debug for LambdaErrorHandler
Auto Trait Implementations§
impl Freeze for LambdaErrorHandler
impl RefUnwindSafe for LambdaErrorHandler
impl Send for LambdaErrorHandler
impl Sync for LambdaErrorHandler
impl Unpin for LambdaErrorHandler
impl UnwindSafe for LambdaErrorHandler
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