Skip to content

Commit 49f28b6

Browse files
committed
docs(cuda.core): name the exception classes importable from cuda.core
1 parent 18f472b commit 49f28b6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎cuda_core/docs/source/error_handling.rst‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ exception whose message contains the error name and its description:
2020
:class:`NVRTCError` for NVRTC failures, and the ``cuda.bindings`` error types
2121
for NVVM and nvJitLink failures. A driver or runtime call that runs out of
2222
memory raises :class:`CUDAOutOfMemoryError`, which derives from both
23-
:class:`CUDAError` and :class:`MemoryError`. These exception classes are
24-
importable from the top-level ``cuda.core`` namespace. Invalid arguments and
25-
misuse raise the usual Python exception types (``TypeError``, ``ValueError``,
26-
``RuntimeError``).
23+
:class:`CUDAError` and :class:`MemoryError`. :class:`CUDAError`,
24+
:class:`NVRTCError`, and :class:`CUDAOutOfMemoryError` are importable from the
25+
top-level ``cuda.core`` namespace. Invalid arguments and misuse raise the
26+
usual Python exception types (``TypeError``, ``ValueError``, ``RuntimeError``).
2727

2828
When a ``cuda.core`` call raises, the following hold:
2929

0 commit comments

Comments
 (0)