Skip to content

Exceptions

TronPy handles many types of exceptions.

exceptions

Classes:

AddressNotFound

Bases: NotFound


              flowchart TD
              tronpy.exceptions.AddressNotFound[AddressNotFound]
              tronpy.exceptions.NotFound[NotFound]

                              tronpy.exceptions.NotFound --> tronpy.exceptions.AddressNotFound
                


              click tronpy.exceptions.AddressNotFound href "" "tronpy.exceptions.AddressNotFound"
              click tronpy.exceptions.NotFound href "" "tronpy.exceptions.NotFound"
            

ApiError

Bases: Exception


              flowchart TD
              tronpy.exceptions.ApiError[ApiError]

              

              click tronpy.exceptions.ApiError href "" "tronpy.exceptions.ApiError"
            

AssetNotFound

Bases: NotFound


              flowchart TD
              tronpy.exceptions.AssetNotFound[AssetNotFound]
              tronpy.exceptions.NotFound[NotFound]

                              tronpy.exceptions.NotFound --> tronpy.exceptions.AssetNotFound
                


              click tronpy.exceptions.AssetNotFound href "" "tronpy.exceptions.AssetNotFound"
              click tronpy.exceptions.NotFound href "" "tronpy.exceptions.NotFound"
            

BadAddress

Bases: ValueError


              flowchart TD
              tronpy.exceptions.BadAddress[BadAddress]

              

              click tronpy.exceptions.BadAddress href "" "tronpy.exceptions.BadAddress"
            

BadHash

Bases: ValueError


              flowchart TD
              tronpy.exceptions.BadHash[BadHash]

              

              click tronpy.exceptions.BadHash href "" "tronpy.exceptions.BadHash"
            

BadKey

Bases: ValueError


              flowchart TD
              tronpy.exceptions.BadKey[BadKey]

              

              click tronpy.exceptions.BadKey href "" "tronpy.exceptions.BadKey"
            

BadSignature

Bases: ValueError


              flowchart TD
              tronpy.exceptions.BadSignature[BadSignature]

              

              click tronpy.exceptions.BadSignature href "" "tronpy.exceptions.BadSignature"
            

BlockNotFound

Bases: NotFound


              flowchart TD
              tronpy.exceptions.BlockNotFound[BlockNotFound]
              tronpy.exceptions.NotFound[NotFound]

                              tronpy.exceptions.NotFound --> tronpy.exceptions.BlockNotFound
                


              click tronpy.exceptions.BlockNotFound href "" "tronpy.exceptions.BlockNotFound"
              click tronpy.exceptions.NotFound href "" "tronpy.exceptions.NotFound"
            

BugInJavaTron

Bases: Exception


              flowchart TD
              tronpy.exceptions.BugInJavaTron[BugInJavaTron]

              

              click tronpy.exceptions.BugInJavaTron href "" "tronpy.exceptions.BugInJavaTron"
            

DoubleSpending

Bases: TransactionError


              flowchart TD
              tronpy.exceptions.DoubleSpending[DoubleSpending]
              tronpy.exceptions.TransactionError[TransactionError]

                              tronpy.exceptions.TransactionError --> tronpy.exceptions.DoubleSpending
                


              click tronpy.exceptions.DoubleSpending href "" "tronpy.exceptions.DoubleSpending"
              click tronpy.exceptions.TransactionError href "" "tronpy.exceptions.TransactionError"
            

NotFound

Bases: ValueError


              flowchart TD
              tronpy.exceptions.NotFound[NotFound]

              

              click tronpy.exceptions.NotFound href "" "tronpy.exceptions.NotFound"
            

ProtobufImportError

Bases: ImportError


              flowchart TD
              tronpy.exceptions.ProtobufImportError[ProtobufImportError]

              

              click tronpy.exceptions.ProtobufImportError href "" "tronpy.exceptions.ProtobufImportError"
            

TaposError

Bases: ValueError


              flowchart TD
              tronpy.exceptions.TaposError[TaposError]

              

              click tronpy.exceptions.TaposError href "" "tronpy.exceptions.TaposError"
            

TransactionError

Bases: Exception


              flowchart TD
              tronpy.exceptions.TransactionError[TransactionError]

              

              click tronpy.exceptions.TransactionError href "" "tronpy.exceptions.TransactionError"
            

TransactionNotFound

Bases: NotFound


              flowchart TD
              tronpy.exceptions.TransactionNotFound[TransactionNotFound]
              tronpy.exceptions.NotFound[NotFound]

                              tronpy.exceptions.NotFound --> tronpy.exceptions.TransactionNotFound
                


              click tronpy.exceptions.TransactionNotFound href "" "tronpy.exceptions.TransactionNotFound"
              click tronpy.exceptions.NotFound href "" "tronpy.exceptions.NotFound"
            

TvmError

Bases: Exception


              flowchart TD
              tronpy.exceptions.TvmError[TvmError]

              

              click tronpy.exceptions.TvmError href "" "tronpy.exceptions.TvmError"
            

UnknownError

Bases: Exception


              flowchart TD
              tronpy.exceptions.UnknownError[UnknownError]

              

              click tronpy.exceptions.UnknownError href "" "tronpy.exceptions.UnknownError"
            

ValidationError

Bases: Exception


              flowchart TD
              tronpy.exceptions.ValidationError[ValidationError]

              

              click tronpy.exceptions.ValidationError href "" "tronpy.exceptions.ValidationError"