MCPcopy Create free account
hub / github.com/decodecaptcha/Browser-Env / JsRuntimeError

Class JsRuntimeError

jsenv/nodeenv/exception.py:5–15  ·  view source on GitHub ↗

Error in executing javascript.

Source from the content-addressed store, hash-verified

3
4
5class JsRuntimeError(CalledProcessError):
6 """Error in executing javascript."""
7
8 def __init__(self, returncode: int, cmd: str, stderr: bytes) -> None:
9 super().__init__(returncode, cmd=cmd, stderr=stderr)
10
11 def __str__(self) -> str:
12 if isinstance(self.stderr, bytes):
13 return self.stderr.decode()
14 else:
15 return str(self.stderr)
16
17
18class NodeNotFoundError(FileNotFoundError):

Callers 2

execMethod · 0.85
execMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected