An exception class for handling error if an error occurred when handling a yaml file.
| 307 | |
| 308 | |
| 309 | class 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 |
no outgoing calls
no test coverage detected