]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson: facilitate errorator extending with new errors.
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Mon, 9 Sep 2019 13:40:58 +0000 (15:40 +0200)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Wed, 20 Nov 2019 19:36:16 +0000 (20:36 +0100)
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/crimson/common/errorator.h

index 3a639c2a7ba1a271b2787895e9735078f288fc9f..b3b7cddc575b61eb739531f27362620ff2db737c 100644 (file)
@@ -293,6 +293,11 @@ struct errorator {
     }
   };
 
+  // get a new errorator by extending current one with new error
+  template <class... NewWrappedAllowedErrorsT>
+  using extend = errorator<WrappedAllowedErrorsT...,
+                           NewWrappedAllowedErrorsT...>;
+
 private:
   struct ignore_marker_t{};