MCPcopy Create free account
hub / github.com/kubernetes-client/python / FailToCreateError

Class FailToCreateError

kubernetes/utils/create_from_yaml.py:309–324  ·  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

307
308
309class FailToCreateError(Exception):
310 """
311 An exception class for handling error if an error occurred when
312 handling a yaml file.
313 """
314
315 def __init__(self, api_exceptions):
316 self.api_exceptions = api_exceptions
317
318 def __str__(self):
319 msg = ""
320 for api_exception in self.api_exceptions:
321 msg += "Error from server ({0}): {1}".format(
322 api_exception.reason, api_exception.body
323 )
324 return msg

Callers 3

create_from_directoryFunction · 0.70
create_withFunction · 0.70
create_from_dictFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected