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