botan-low
Copyright(c) 2023-2024 Apotheca Labs
(c) 2024-2025 Haskell Foundation
LicenseBSD-3-Clause
Maintainerjoris@well-typed.com, leo@apotheca.io
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe-Inferred
LanguageGHC2021

Botan.Low.Error

Description

This module is based on the Return codes section of the C Botan FFI documentation.

Synopsis

Error codes

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 BotanErrorMessage 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

Exception hierarchy

data SomeBotanException Source #

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

Constructors

forall e.Exception e => SomeBotanException e 

Individual exceptions