automated terminal push
This commit is contained in:
19
cdk-env/lib/python3.12/site-packages/jsii/errors.py
Normal file
19
cdk-env/lib/python3.12/site-packages/jsii/errors.py
Normal file
@@ -0,0 +1,19 @@
|
||||
import textwrap
|
||||
from enum import Enum
|
||||
|
||||
|
||||
class JSIIError(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class JavaScriptError(Exception):
|
||||
def __init__(self, stack):
|
||||
self.stack = stack
|
||||
|
||||
def __str__(self):
|
||||
return "\n" + textwrap.indent(self.stack, " ", lambda line: bool(line))
|
||||
|
||||
|
||||
class ErrorType(Enum):
|
||||
JSII_FAULT = "@jsii/kernel.Fault"
|
||||
RUNTIME_ERROR = "@jsii/kernel.RuntimeError"
|
Reference in New Issue
Block a user