]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
common/error_code: Add from_exception
authorAdam Emerson <aemerson@redhat.com>
Tue, 14 May 2024 19:08:08 +0000 (15:08 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Tue, 1 Apr 2025 15:10:13 +0000 (11:10 -0400)
commit3b887b064b2b75842061c8f310d8b6f634517d6a
treea44b803b732e6899c4d8a33c4204ffc53569d22d
parentaa9368df27868330fd4fd582683118cb80849f17
common/error_code: Add from_exception

Getting an integer error code out of an exception is something we
often want to do, so put it in one place and do it right.

Signed-off-by: Adam Emerson <aemerson@redhat.com>
src/common/error_code.h