botan-low-0.0.1.0: Low-level Botan bindings
Copyright(c) Leo D 2023
LicenseBSD-3-Clause
Maintainerleo@apotheca.io
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe-Inferred
LanguageHaskell2010

Botan.Low.Error

Description

 
Synopsis

Documentation

type BotanErrorCode = CInt Source #

Botan error code data type

botanErrorDescription :: BotanErrorCode -> IO ByteString Source #

Convert an error code into a string. Returns "Unknown error" if the error code is not a known one.

botanErrorLastExceptionMessage :: IO ErrorMessage Source #

Returns a static string stored in a thread local variable which contains the last exception message thrown. WARNING: This string buffer is overwritten on the next call to the FFI layer

data SomeBotanException Source #

The SomeBotanException type is the root of the botan exception type hierarchy.

Constructors

forall e.Exception e => SomeBotanException e