chore: use LPError

This commit is contained in:
Diego 2024-10-14 19:00:22 +02:00 committed by Richard Ramos
parent e4268e61d4
commit 859047329a
No known key found for this signature in database
GPG Key ID: 7218C1B2A89A1B6D

View File

@ -27,6 +27,7 @@ import mbedtls/debug
import mbedtls/error
import nimcrypto/utils
import ../../crypto/crypto
import ../../errors
logScope:
topics = "libp2p tls certificate"
@ -42,7 +43,7 @@ const
# Exception types for TLS certificate errors
type
TLSCertificateError* = object of Exception
TLSCertificateError* = object of LPError
ASN1EncodingError* = object of TLSCertificateError
KeyGenerationError* = object of TLSCertificateError
CertificateCreationError* = object of TLSCertificateError