MCPcopy Index your code
hub / github.com/kubernetes-client/python / FailToCreateError

Class FailToCreateError

kubernetes/aio/utils/create_from_yaml.py:191–205  ·  view source on GitHub ↗

An exception class for handling error if an error occurred when handling a yaml file.

Source from the content-addressed store, hash-verified

189
190
191class FailToCreateError(Exception):
192 """
193 An exception class for handling error if an error occurred when
194 handling a yaml file.
195 """
196
197 def __init__(self, api_exceptions):
198 self.api_exceptions = api_exceptions
199
200 def __str__(self):
201 msg = ""
202 for api_exception in self.api_exceptions:
203 msg += "Error from server ({0}): {1}".format(
204 api_exception.reason, api_exception.body)
205 return msg

Callers 2

create_from_yamlFunction · 0.70
create_from_dictFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected