]>
git.proxmox.com Git - ceph.git/blob - ceph/src/crimson/auth/Errors.h
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
12 unknown_service
, // no ticket handler for required service
15 const std::error_category
& auth_category();
17 inline std::error_code
make_error_code(error e
)
19 return {static_cast<int>(e
), auth_category()};
22 inline std::error_condition
make_error_condition(error e
)
24 return {static_cast<int>(e
), auth_category()};
27 class auth_error
: public std::runtime_error
{};
29 } // namespace ceph::auth
33 /// enables implicit conversion to std::error_condition
35 struct is_error_condition_enum
<ceph::auth::error
> : public true_type
{};