aboutsummaryrefslogtreecommitdiff
path: root/src/ee/__init__.py
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-08-15 13:33:29 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2019-08-15 13:33:29 +0200
commitdb80ff609d570f6074eb35758304a0141a24050a (patch)
treebce0a801e1ca0046b5e3ee02d32bffc3457709c7 /src/ee/__init__.py
parentf328b015085be3eab7800e6f87cf1ae704486c0a (diff)
downloadee-python-db80ff609d570f6074eb35758304a0141a24050a.tar.gz
ee-python-db80ff609d570f6074eb35758304a0141a24050a.tar.bz2
ee-python-db80ff609d570f6074eb35758304a0141a24050a.tar.xz
ee-python-db80ff609d570f6074eb35758304a0141a24050a.zip
create-bom: Add support for passing arguments to tool. Implement
fail_on_missing_parts in the CLI. ee: Add StopToolException, makes for a more graceful exit(1) if a tool wants to stop immediately.
Diffstat (limited to 'src/ee/__init__.py')
-rw-r--r--src/ee/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ee/__init__.py b/src/ee/__init__.py
index ea887b1..bbb9281 100644
--- a/src/ee/__init__.py
+++ b/src/ee/__init__.py
@@ -8,6 +8,7 @@ from ee.formatting import eng_str
__all__ = [
"EeException",
+ "StopToolException",
"EeVal",
"EeValType",
"resistance_type",
@@ -21,6 +22,10 @@ class EeException(Exception):
pass
+class StopToolException(EeException):
+ pass
+
+
class EeValType(object):
def __init__(self, symbol, alternate_symbols):
self.symbol = symbol