Module jumpscale.clients.stellar.exceptions
Expand source code
from jumpscale.loader import j
class TemporaryProblem(j.exceptions.JSException):
def __init__(self, message):
self.message = message
super().__init__(message)
def __str__(self):
return self.message
class NoTrustLine(j.exceptions.JSException):
def __init__(self):
super().__init__("Receiver has no trustline")
def __str__(self):
return "Receiver has no trustline"
class UnAuthorized(j.exceptions.JSException):
def __init__(self, transaction_xdr):
self.transaction_xdr = transaction_xdr
super().__init__("Unauthorized or not enough signatures")
def __str__(self):
return f"Unauthorized or not enough signatures for transaction envelope {self.transaction_xdr}"
class TooLate(TemporaryProblem):
def __init__(self):
super().__init__("The transaction failed to be submitted to the network in time")
Classes
class NoTrustLine
-
Common base class for all non-exit exceptions.
Expand source code
class NoTrustLine(j.exceptions.JSException): def __init__(self): super().__init__("Receiver has no trustline") def __str__(self): return "Receiver has no trustline"
Ancestors
- JSException
- builtins.Exception
- builtins.BaseException
class TemporaryProblem (message)
-
Common base class for all non-exit exceptions.
Expand source code
class TemporaryProblem(j.exceptions.JSException): def __init__(self, message): self.message = message super().__init__(message) def __str__(self): return self.message
Ancestors
- JSException
- builtins.Exception
- builtins.BaseException
Subclasses
class TooLate
-
Common base class for all non-exit exceptions.
Expand source code
class TooLate(TemporaryProblem): def __init__(self): super().__init__("The transaction failed to be submitted to the network in time")
Ancestors
- TemporaryProblem
- JSException
- builtins.Exception
- builtins.BaseException
class UnAuthorized (transaction_xdr)
-
Common base class for all non-exit exceptions.
Expand source code
class UnAuthorized(j.exceptions.JSException): def __init__(self, transaction_xdr): self.transaction_xdr = transaction_xdr super().__init__("Unauthorized or not enough signatures") def __str__(self): return f"Unauthorized or not enough signatures for transaction envelope {self.transaction_xdr}"
Ancestors
- JSException
- builtins.Exception
- builtins.BaseException