From d0e6311b3ddf9ed3abe500988dbe8d227df71245 Mon Sep 17 00:00:00 2001 From: mikera Date: Thu, 15 Aug 2024 19:06:25 +0100 Subject: [PATCH] More updates to error CAD11 re: failure sources --- cad/011_errors/README.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/cad/011_errors/README.md b/cad/011_errors/README.md index 3aba8e0..7e44b5a 100644 --- a/cad/011_errors/README.md +++ b/cad/011_errors/README.md @@ -219,12 +219,18 @@ If a pre-condition is not met, it may then be appropriate to `fail` immediately Error sources indicate the region in the network where an error occurred -### `:CLIENT` +| Source Code | Location of error | Example(s) +| ------------ | -------------------------------- | ----------- +| `:CLIENT` | Client library code | Failed input validation +| `:COMM` | Client-Server communications | IO failure, connection failure or timeout +| `:PEER` | Peer handling of user request | Rejected for bad signature by peer +| `:NET` | Consensus network | Transaction rejected in corrupt block +| `:TX` | CVM transaction handling | Invalid public key for account +| `:CODE` | CVM code execution | Invalid public key for account -Client code, probably due to invalid input validation -### `:NET` +, probably due to invalid input validation + -Network communication failure typically IO failure, connection failure or timeout