sawtooth.exceptions module

exception sawtooth.exceptions.SawtoothException(msg)[source]

Bases: exceptions.Exception

exception sawtooth.exceptions.ClientException(msg)[source]

Bases: sawtooth.exceptions.SawtoothException

exception sawtooth.exceptions.MessageException[source]

Bases: exceptions.Exception

A class to capture communication exceptions

exception sawtooth.exceptions.NotAvailableException[source]

Bases: exceptions.Exception

Indicates a required service is not available and the action should be tried again later.

exception sawtooth.exceptions.TransactionException(msg)[source]

Bases: sawtooth.exceptions.SawtoothException

Exception raised from Transaction implementations.

exception sawtooth.exceptions.InvalidTransactionError(msg)[source]

Bases: sawtooth.exceptions.TransactionException

Exception raised from Transaction.check_valid(), indicating that the transaction is not valid. The corresponding message is logged by the validator and may be provided to a client (and end-user) as a reason the transaction was not accepted.

exception sawtooth.exceptions.ManagementError(msg)[source]

Bases: sawtooth.exceptions.SawtoothException