MCPcopy Create free account
hub / github.com/deepnote/vscode-deepnote / unwrap

Method unwrap

src/platform/errors/types.ts:47–56  ·  view source on GitHub ↗
(err: any)

Source from the content-addressed store, hash-verified

45
46 // eslint-disable-next-line @typescript-eslint/no-explicit-any
47 public static unwrap(err: any) {
48 if (!err) {
49 return err;
50 }
51 // Unwrap the errors.
52 if (err instanceof WrappedError && err.originalException && err.originalException instanceof BaseError) {
53 err = err.originalException;
54 }
55 return err;
56 }
57}
58
59export function getErrorCategory(error?: Error): ErrorCategory {

Callers 6

executeQueuedCellsMethod · 0.80
handleErrorFunction · 0.80
handleKernelErrorFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected