[Clean] safer unwrap & except handling
Some checks failed
CI / checks (push) Failing after 1m51s

This commit is contained in:
Alex Emmet 2026-07-15 19:11:01 +02:00
commit 5f11d476b6
17 changed files with 475 additions and 348 deletions

View file

@ -3,41 +3,48 @@ protocol_version: "0.0"
# Note that markers 0 to 31 are reserved for default use, manually working with them is not recommended
# Fixed CommunicationType markers are:
# Error: 0
# ErrorParsing: 1
# ErrorBadVersion: 2
# Disconnect: 3
# Redirect: 4
# Shutdown: 5
# BadRequest: 6
# Unauthorized: 7
# Forbidden: 8
# NotFound: 9
# TooManyRequests: 10
# InternalServerError: 11
# BadGateway: 12
# ServiceUnavailable: 13
# GatewayTimeout: 14
# Identification: 15
# IdentificationResponse: 16
# Register: 17
# RegisterResponse: 18
# Ping: 19
# Pong: 20
# Identification: 0
# IdentificationResponse: 1
# Register: 2
# RegisterResponse: 3
# Challenge: 4
# ChallengeResponse: 5
# Ping: 6
# Pong: 7
# Disconnect: 8
# Redirect: 9
# Shutdown: 10
# Error: 11
# ErrorParsing: 12
# ErrorBadVersion: 13
# BadRequest: 14
# Unauthorized: 15
# Forbidden: 16
# NotFound: 17
# TooManyRequests: 18
# InternalServerError: 19
# BadGateway: 20
# ServiceUnavailable: 21
# GatewayTimeout: 22
# PipeRequest: 23
# PipeResponse: 24
# PipeAbort: 25
#
# Fixed Data Type markers are:
# Error: 0
# ErrorParsing: 1
# ErrorMessage: 2
# Version: 3
# Description: 4
# Timestamp: 5
# Id: 6
# ClientNonce: 7
# ServerNonce: 8
# PublicKeys: 9
# Signature: 10
# Connected: 11
# Version: 0
# id: 1
# ClientNonce: 2
# ServerNonce: 3
# PublicKeys: 4
# Signature: 5
# PqSignature: 6
# Description: 7
# Connected: 8
# Timestamp: 9
# Error: 10
# ErrorParsing: 11
# ErrorMessage: 12
# Accepted: 13,
#
# If a Type can't be used it will be mapped to 0