File tree Expand file tree Collapse file tree 3 files changed +5
-27
lines changed Expand file tree Collapse file tree 3 files changed +5
-27
lines changed Original file line number Diff line number Diff line change 33
33
# Otherwise try loading by name only.
34
34
ctypes .CDLL (lib_name )
35
35
36
+ from .cc import TileDBError
37
+
36
38
from .ctx import default_ctx , scope_ctx
37
39
from .libtiledb import (
38
40
Array ,
42
44
Domain ,
43
45
Attr ,
44
46
ArraySchema ,
45
- TileDBError ,
46
47
consolidate ,
47
48
group_create ,
48
49
object_type ,
Original file line number Diff line number Diff line change @@ -1273,9 +1273,5 @@ cdef class ReadQuery(object):
1273
1273
cdef class Metadata(object ):
1274
1274
cdef object array_ref
1275
1275
1276
- cdef class TileDBError(Exception ):
1277
- pass
1278
-
1279
-
1280
1276
IF (not TILEDBPY_MODULAR):
1281
1277
include " indexing.pxd"
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ from .filter import FilterList
17
17
from .vfs import VFS
18
18
19
19
import tiledb .cc as lt
20
+ from tiledb .cc import TileDBError
21
+
20
22
21
23
###############################################################################
22
24
# Numpy initialization code (critical) #
@@ -27,7 +29,7 @@ np.import_array()
27
29
28
30
29
31
###############################################################################
30
- # MODULAR IMPORTS #
32
+ # MODULAR IMPORTS #
31
33
###############################################################################
32
34
33
35
IF TILEDBPY_MODULAR :
@@ -493,27 +495,6 @@ cdef _write_array(tiledb_ctx_t* ctx_ptr,
493
495
tiledb_query_free (& query_ptr )
494
496
return
495
497
496
-
497
- cdef class TileDBError (Exception ):
498
- """TileDB Error Exception
499
-
500
- Captures and raises error return code (``TILEDB_ERR``) messages when calling ``libtiledb``
501
- functions. The error message that is raised is the last error set for the :py:class:`tiledb.Ctx`
502
-
503
- A Python :py:class:`MemoryError` is raised on ``TILEDB_OOM``
504
-
505
- """
506
-
507
- @property
508
- def message (self ):
509
- """The TileDB error message string
510
-
511
- :rtype: str
512
- :return: error message
513
-
514
- """
515
- return self .args [0 ]
516
-
517
498
cdef _raise_tiledb_error (tiledb_error_t * err_ptr ):
518
499
cdef const char * err_msg_ptr = NULL
519
500
ret = tiledb_error_message (err_ptr , & err_msg_ptr )
You can’t perform that action at this time.
0 commit comments