Skip to content

Commit 964533b

Browse files
docs(kernel): describe local missing-file mapping
Signed-off-by: Aakash Saravanan <aakash.saravanan@databricks.com>
1 parent 37fa359 commit 964533b

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎src/databricks/sql/backend/kernel/_errors.py‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,11 @@
121121
def reraise_kernel_error(
122122
exc: "_kernel.KernelError",
123123
) -> "Union[Error, FileNotFoundError]":
124-
"""Convert a ``databricks_sql_kernel.KernelError`` to a PEP 249
125-
exception with the kernel's structured attributes forwarded onto
126-
the new instance.
124+
"""Map a kernel error and forward its structured attributes.
125+
126+
Local ``FILE_TRANSFER_ERROR`` errors with ``NotFound`` and no HTTP
127+
status use the built-in ``FileNotFoundError``; other errors use
128+
PEP 249 exception classes.
127129
128130
The returned exception is raised by callers with ``raise ... from
129131
exc``; the ``from`` clause is what sets ``__cause__``, so we don't

0 commit comments

Comments
 (0)