Virgil Security Crypto library
2.4.6
|
This group contains interfaces for error handling mechanism that is used in the library. More...
Classes | |
class | virgil::crypto::foundation::VirgilSystemCryptoErrorCategory |
Error category that handles error codes from the system crypto library. More... | |
class | virgil::crypto::pythia::VirgilPythiaErrorCategory |
Error category that handles error codes from the system crypto library. More... | |
class | virgil::crypto::VirgilCryptoErrorCategory |
This is specific error category that contains information about crypto library errors. More... | |
class | virgil::crypto::VirgilCryptoException |
This only exception that crypto library can produce. More... | |
Functions | |
const VirgilSystemCryptoErrorCategory & | virgil::crypto::foundation::system_crypto_category () noexcept |
Return singleton instance of the system crypto error category. More... | |
int | virgil::crypto::foundation::system_crypto_handler_get_result (int result) |
Handle value returned by underling system crypto library. More... | |
void | virgil::crypto::foundation::system_crypto_handler (int result) |
Handle value returned by underling system crypto library. More... | |
template<typename CatchHandler > | |
int | virgil::crypto::foundation::system_crypto_handler_get_result (int result, CatchHandler catch_handler) |
Handle value returned by underling system crypto library. More... | |
template<typename CatchHandler > | |
void | virgil::crypto::foundation::system_crypto_handler (int result, CatchHandler catch_handler) |
Handle value returned by underling system crypto library. More... | |
const VirgilPythiaErrorCategory & | virgil::crypto::pythia::pythia_error_category () noexcept |
Return singleton instance of the system crypto error category. More... | |
int | virgil::crypto::pythia::pythia_handler_get_result (int result) |
Handle value returned by underling system crypto library. More... | |
void | virgil::crypto::pythia::pythia_handler (int result) |
Handle value returned by underling system crypto library. More... | |
template<typename CatchHandler > | |
int | virgil::crypto::pythia::pythia_handler_get_result (int result, CatchHandler catch_handler) |
Handle value returned by underling system crypto library. More... | |
template<typename CatchHandler > | |
void | virgil::crypto::pythia::pythia_handler (int result, CatchHandler catch_handler) |
Handle value returned by underling system crypto library. More... | |
const VirgilCryptoErrorCategory & | virgil::crypto::crypto_category () noexcept |
Return singleton instance of the crypto error category. More... | |
VirgilCryptoException | virgil::crypto::make_error (VirgilCryptoError ev) |
Build exception with given error value and corresond error category. More... | |
VirgilCryptoException | virgil::crypto::make_error (VirgilCryptoError ev, const std::string &what) |
Build exception with given error value and corresond error category. More... | |
VirgilCryptoException | virgil::crypto::make_error (VirgilCryptoError ev, const char *what) |
Build exception with given error value and corresond error category. More... | |
This group contains interfaces for error handling mechanism that is used in the library.
|
strong |
Specific error codes for the crypto library.
|
noexcept |
Return singleton instance of the crypto error category.
|
inline |
Build exception with given error value and corresond error category.
ev | Error value. |
|
inline |
Build exception with given error value and corresond error category.
ev | Error value. |
what | Additional error description. |
|
inline |
Build exception with given error value and corresond error category.
ev | Error value. |
what | Additional error description. |
|
noexcept |
Return singleton instance of the system crypto error category.
|
inline |
Handle value returned by underling system crypto library.
If given value is an error then VirgilCryptoException will be thrown with appropriate description. If given value is not an error then do nothing.
result | Value returned by system crypto library. |
VirgilCryptoException | with given error code and correspond category, if given value represents an error. |
|
inline |
Handle value returned by underling system crypto library.
This function is usefull if thrown exception SHOULD be wrapped or error can be handled in a different way. Initial exception can be accessed via std::current_exception(), or std::throw_with_nested().
If given value is an error then VirgilCryptoException will be thrown with appropriate description. If given value is not an error then do nothing.
result | Value returned by system crypto library. |
catch_handler | Function that can handle the error in a different way. |
|
inline |
Handle value returned by underling system crypto library.
If given value is an error then VirgilCryptoException will be thrown with appropriate description. If given value is not an error then it will be returned.
result | Value returned by system crypto library. |
VirgilCryptoException | with given error code and correspond category, if given value represents an error. |
|
inline |
Handle value returned by underling system crypto library.
This function is usefull if thrown exception SHOULD be wrapped. Initial exception can be accessed via std::current_exception(), or std::throw_with_nested().
If given value is an error then VirgilCryptoException will be thrown with appropriate description. If given value is not an error then it will be returned.
result | Value returned by system crypto library. |
catch_handler | Function that can handle the error in a different way. |
|
noexcept |
Return singleton instance of the system crypto error category.
|
inline |
Handle value returned by underling system crypto library.
If given value is an error then VirgilCryptoException will be thrown with appropriate description. If given value is not an error then do nothing.
result | Value returned by system crypto library. |
VirgilCryptoException | with given error code and correspond category, if given value represents an error. |
|
inline |
Handle value returned by underling system crypto library.
This function is usefull if thrown exception SHOULD be wrapped or error can be handled in a different way. Initial exception can be accessed via std::current_exception(), or std::throw_with_nested().
If given value is an error then VirgilCryptoException will be thrown with appropriate description. If given value is not an error then do nothing.
result | Value returned by system crypto library. |
catch_handler | Function that can handle the error in a different way. |
|
inline |
Handle value returned by underling system crypto library.
If given value is an error then VirgilCryptoException will be thrown with appropriate description. If given value is not an error then it will be returned.
result | Value returned by system crypto library. |
VirgilCryptoException | with given error code and correspond category, if given value represents an error. |
|
inline |
Handle value returned by underling system crypto library.
This function is usefull if thrown exception SHOULD be wrapped. Initial exception can be accessed via std::current_exception(), or std::throw_with_nested().
If given value is an error then VirgilCryptoException will be thrown with appropriate description. If given value is not an error then it will be returned.
result | Value returned by system crypto library. |
catch_handler | Function that can handle the error in a different way. |