1 #ifndef CBE__util__Exception_h__
2 #define CBE__util__Exception_h__
14 template <
typename... Ts>
16 std::string typeAsString()
const;
25 template <
class CbeExceptionT>
27 static_assert(std::is_base_of<cbe::util::Exception, CbeExceptionT>::value,
28 "The provided exception type, CbeExceptionT, "
29 "is not a subclass of cbe::util::Exception");
30 return dynamic_cast<const CbeExceptionT*
>(
this);
37 template <
class ErrorInfoT>
43 const ErrorInfoT errorInfo;
Root namespace for the CloudBackend SDK API.
Definition: Account.h:22
Definition: Exception.h:38
Definition: Exception.h:13
const CbeExceptionT * derivedCbeException() const
Examines whether current exception is of type CbeExceptionT.
Definition: Exception.h:26