Merge pull request #554 from matthiasbeyer/libimagerror/custom-data-setter

Add setter for custom data for error types
This commit is contained in:
Matthias Beyer 2016-07-16 19:36:46 +02:00 committed by GitHub
commit 48950b6175

View file

@ -78,6 +78,11 @@ macro_rules! generate_custom_error_types {
self.err_type
}
pub fn with_custom_data(mut self, custom: $customMemberTypeName) -> $name {
self.custom_data = Some(custom);
self
}
}
impl Into<$name> for $kindname {