Class ConsensusException

All Implemented Interfaces:
Serializable

public final class ConsensusException extends BlockchainException
Thrown when a ConsensusEngine encounters an unrecoverable error during block production or validation.

Examples:

  • PBFT cannot reach the required quorum (e.g., too many Byzantine nodes)
  • PoA signer key is unavailable or corrupt
  • Mining thread is interrupted mid-nonce-search
Since:
1.0.0
See Also:
  • Constructor Details

    • ConsensusException

      public ConsensusException(String message)
      Constructs a ConsensusException with a detail message.
      Parameters:
      message - human-readable description of the consensus failure
    • ConsensusException

      public ConsensusException(String message, Throwable cause)
      Constructs a ConsensusException with a detail message and cause.
      Parameters:
      message - human-readable description of the consensus failure
      cause - the underlying exception (e.g., network timeout)