FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
aws-lambda-builders/aws_lambda_builders/exceptions.py at develop · mildaniel/aws-lambda-builders · GitHub
mildaniel
/
aws-lambda-builders
Public
forked from
aws/aws-lambda-builders
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
aws-lambda-builders
/
aws_lambda_builders
/
exceptions.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
74 lines (49 loc) · 1.9 KB
Breadcrumbs
aws-lambda-builders
/
aws_lambda_builders
/
exceptions.py
Copy path
File metadata and controls
74 lines (49 loc) · 1.9 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
"""
Collection of public exceptions raised by this library
"""
class
LambdaBuilderError
(
Exception
):
MESSAGE
=
""
def
__init__
(
self
,
**
kwargs
):
Exception
.
__init__
(
self
,
self
.
MESSAGE
.
format
(
**
kwargs
))
class
UnsupportedManifestError
(
LambdaBuilderError
):
MESSAGE
=
"A builder for the given capabilities '{capabilities}' was not found"
class
MisMatchRuntimeError
(
LambdaBuilderError
):
MESSAGE
=
(
"{language} executable found in your path does not "
"match runtime. "
"
\n
Expected version: {required_runtime}, Found a different version at {runtime_path}. "
"
\n
Possibly related: https://github.com/awslabs/aws-lambda-builders/issues/30"
)
class
RuntimeValidatorError
(
LambdaBuilderError
):
"""
Raise when runtime is not supported or when runtime is not compatible with architecture
"""
MESSAGE
=
"Runtime validation error for {runtime}"
class
UnsupportedRuntimeError
(
RuntimeValidatorError
):
"""
Raise when runtime is not supported
"""
MESSAGE
=
"Runtime {runtime} is not supported"
class
UnsupportedArchitectureError
(
RuntimeValidatorError
):
"""
Raise when runtime does not support architecture
"""
MESSAGE
=
"Architecture {architecture} is not supported for runtime {runtime}"
class
WorkflowNotFoundError
(
LambdaBuilderError
):
"""
Raised when a workflow matching the given capabilities was not found
"""
MESSAGE
=
(
"Unable to find a workflow matching given capability: "
"{language}, {dependency_manager}, {application_framework}"
)
class
WorkflowFailedError
(
LambdaBuilderError
):
"""
Raised when the build failed, for well-known cases
"""
MESSAGE
=
"{workflow_name}:{action_name} - {reason}"
class
WorkflowUnknownError
(
LambdaBuilderError
):
"""
Raised when the build ran into an unexpected error
"""
MESSAGE
=
"{workflow_name}:{action_name} - {reason}"
Back
|
FazBrowse Home
|
New Git URL