This PR introduces custom exceptions to enhance error handling in PyTONLib, enabling dependent projects to catch and handle specific error cases more reliably.
Key Changes
Added PyTonLibException as the base class for library-specific exceptions.
Introduced SmartContractIsNotJettonOrNftException to handle cases where a smart contract is neither a Jetton nor an NFT.
Issue
https://github.com/toncenter/pytonlib/issues/67
Description
This PR introduces custom exceptions to enhance error handling in PyTONLib, enabling dependent projects to catch and handle specific error cases more reliably.
Key Changes
PyTonLibException
as the base class for library-specific exceptions.SmartContractIsNotJettonOrNftException
to handle cases where a smart contract is neither a Jetton nor an NFT.