MCPcopy Create free account
hub / github.com/KhronosGroup/KTX-Software / KtxError

Class KtxError

interface/python_binding/pyktx/ktx_error_code.py:77–91  ·  view source on GitHub ↗

Error thrown when native operation does not succeed.

Source from the content-addressed store, hash-verified

75
76
77class KtxError(Exception):
78 """Error thrown when native operation does not succeed."""
79
80 invocation: str
81 """The C library function called."""
82
83 code: KtxErrorCode
84 """The error code returned by libktx."""
85
86 def __init__(self, invocation: str, code: KtxErrorCode):
87 self.invocation = invocation
88 self.code = code
89
90 def __str__(self):
91 return str(self.invocation) + " returned with " + str(self.code)

Callers 15

createMethod · 0.85
add_kv_pairMethod · 0.85
delete_kv_pairMethod · 0.85
find_valueMethod · 0.85
copyMethod · 0.85
image_offsetMethod · 0.85
set_image_from_memoryMethod · 0.85
write_to_named_fileMethod · 0.85
createMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected