Package com.privatechain.core.exception
package com.privatechain.core.exception
Unchecked exception hierarchy rooted at
BlockchainException.
All exceptions thrown by this library extend BlockchainException, which is
itself an unchecked (RuntimeException) subclass. Consumers do not need to
declare checked exceptions in their code (NFR-UX-03).
Concrete exception types:
BlockValidationException— thrown when a block fails any validation step inBlockchain.addBlock().ConsensusException— thrown on an unrecoverable consensus-protocol error (e.g., empty peer list in RoundRobin).TransactionValidationException— thrown when a transaction is rejected by anyTransactionValidatorin the chain.
- Since:
- 1.0.0
-
Exception ClassesClassDescriptionRoot unchecked exception for all errors thrown by the private-blockchain library.Thrown when a
Blockfails validation duringBlockchain.addBlock().Thrown when aConsensusEngineencounters an unrecoverable error during block production or validation.Thrown when aTransactionfails one or moreTransactionValidatorchecks before entering the mempool or being included in a block.