algokit_utils.logic_error
Classes
LogicErrorData | dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2) |
---|
API
exception algokit_utils.logic_error.LogicError
LogicError(*, logic_error_str: str, program: str, source_map: AlgoSourceMap | None, transaction_id: str, message: str, pc: int, logic_error: Exception | None = None, traces: list[algokit_utils.models.SimulationTrace] | None = None)
Common base class for all non-exit exceptions.
Initialization
Initialize self. See help(type(self)) for accurate signature.
class __cause__
cause
exception cause
class __context__
context
exception context
__delattr__
delattr()
Implement delattr(self, name).
__dir__
dir()
Default dir() implementation.
__eq__
eq()
Return self==value.
__format__
format()
Default object formatter.
Return str(self) if format_spec is empty. Raise TypeError otherwise.
__ge__
ge()
Return self>=value.
__getattribute__
getattribute()
Return getattr(self, name).
__getstate__
getstate()
Helper for pickle.
__gt__
gt()
Return self>value.
__hash__
hash()
Return hash(self).
__le__
le()
Return self<=value.
__lt__
lt()
Return self<value.
__ne__
ne()
Return self!=value.
__new__
new()
Create and return a new object. See help(type) for accurate signature.
__reduce__
reduce()
Helper for pickle.
__reduce_ex__
reduce_ex()
Helper for pickle.
__repr__
repr()
Return repr(self).
__setattr__
setattr()
Implement setattr(self, name, value).
__sizeof__
sizeof()
Size of object in memory, in bytes.
__str__
str() → str
Return str(self).
add_note
add_note()
Exception.add_note(note) – add a note to the exception
with_traceback
with_traceback()
Exception.with_traceback(tb) – set self.traceback to tb and return self.
class algokit_utils.logic_error.LogicErrorData
LogicErrorData
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2)
Initialization
Initialize self. See help(type(self)) for accurate signature.
__contains__
contains()
True if the dictionary has the specified key, else False.
__delattr__
delattr()
Implement delattr(self, name).
__delitem__
delitem()
Delete self[key].
__dir__
dir()
Default dir() implementation.
__eq__
eq()
Return self==value.
__format__
format()
Default object formatter.
Return str(self) if format_spec is empty. Raise TypeError otherwise.
__ge__
ge()
Return self>=value.
__getattribute__
getattribute()
Return getattr(self, name).
__getitem__
getitem()
Return self[key].
__getstate__
getstate()
Helper for pickle.
__gt__
gt()
Return self>value.
__ior__
ior()
Return self|=value.
__iter__
iter()
Implement iter(self).
__le__
le()
Return self<=value.
__len__
len()
Return len(self).
__lt__
lt()
Return self<value.
__ne__
ne()
Return self!=value.
__new__
new()
Create and return a new object. See help(type) for accurate signature.
__or__
or()
Return self|value.
__reduce__
reduce()
Helper for pickle.
__reduce_ex__
reduce_ex()
Helper for pickle.
__repr__
repr()
Return repr(self).
__reversed__
reversed()
Return a reverse iterator over the dict keys.
__ror__
ror()
Return value|self.
__setattr__
setattr()
Implement setattr(self, name, value).
__setitem__
setitem()
Set self[key] to value.
__sizeof__
sizeof()
D.sizeof() -> size of D in memory, in bytes
__str__
str()
Return str(self).
clear
clear()
D.clear() -> None. Remove all items from D.
copy
copy()
D.copy() -> a shallow copy of D
get
get()
Return the value for key if key is in the dictionary, else default.
items
items()
D.items() -> a set-like object providing a view on D’s items
keys
keys()
D.keys() -> a set-like object providing a view on D’s keys
pop
pop()
D.pop(k[,d]) -> v, remove specified key and return the corresponding value.
If the key is not found, return the default if given; otherwise, raise a KeyError.
popitem
popitem()
Remove and return a (key, value) pair as a 2-tuple.
Pairs are returned in LIFO (last-in, first-out) order. Raises KeyError if the dict is empty.
setdefault
setdefault()
Insert key with a value of default if key is not in the dictionary.
Return the value for key if key is in the dictionary, else default.
update
update()
D.update([E, ]**F) -> None. Update D from mapping/iterable E and F. If E is present and has a .keys() method, then does: for k in E.keys(): D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]
values
values()
D.values() -> an object providing a view on D’s values