Exceptions
Exception classes for P2P, Wallet and NGNT
On the request level, the HTTPError
exception when caught in the except
block is raised by one of the built-in custom exception classes.
These built-in custom classes help the developer to understand the source of the error. The built-in custom classes are:
ServerError
AccountError
ClientError
WalletError
QueryError
P2PError
The custom classes are built with this template:
where ClassError
is one of the available exception classes in the library.
Example
To return the appropriate error response for an invalid query, the library executes this block of code:
Last updated