-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: capture all errors logged by gdal when opening a file fails (#495)
- Loading branch information
Showing
9 changed files
with
354 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
cdef object exc_check() | ||
cdef int exc_wrap_int(int retval) except -1 | ||
cdef int exc_wrap_ogrerr(int retval) except -1 | ||
cdef void *exc_wrap_pointer(void *ptr) except NULL | ||
cdef object check_last_error() | ||
cdef int check_int(int retval) except -1 | ||
cdef void *check_pointer(void *ptr) except NULL | ||
|
||
cdef class ErrorHandler: | ||
cdef object error_stack | ||
cdef int check_int(self, int retval, bint squash_errors) except -1 | ||
cdef void *check_pointer(self, void *ptr, bint squash_errors) except NULL | ||
cdef void _handle_error_stack(self, bint squash_errors) |
Oops, something went wrong.