pub struct TryCatchConfig {
pub try_expression: String,
pub catch_expression: Option<String>,
pub finally_expression: Option<String>,
pub rethrow: bool,
pub error_variable: String,
}Expand description
Configuration for try-catch error handling nodes
Fields§
§try_expression: StringExpression or template to try executing
catch_expression: Option<String>Optional expression to execute if try fails Can access {{error}} variable containing the error message
finally_expression: Option<String>Optional expression to always execute (after try or catch)
rethrow: boolWhether to re-throw the error after catch (default: false) If true, the node will still fail even after executing catch
error_variable: StringVariable name to store the error in catch block (default: “error”)
Trait Implementations§
Source§impl Clone for TryCatchConfig
impl Clone for TryCatchConfig
Source§fn clone(&self) -> TryCatchConfig
fn clone(&self) -> TryCatchConfig
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 TryCatchConfig
impl Debug for TryCatchConfig
Source§impl<'de> Deserialize<'de> for TryCatchConfig
impl<'de> Deserialize<'de> for TryCatchConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TryCatchConfig
impl RefUnwindSafe for TryCatchConfig
impl Send for TryCatchConfig
impl Sync for TryCatchConfig
impl Unpin for TryCatchConfig
impl UnwindSafe for TryCatchConfig
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