Exception
| 111 | |
| 112 | |
| 113 | class ObjectGone(HTTPException): |
| 114 | """ |
| 115 | Exception |
| 116 | """ |
| 117 | |
| 118 | def __init__(self, error_msg): |
| 119 | self.error_msg = error_msg |
| 120 | HTTPException.__init__(self) |
| 121 | |
| 122 | @property |
| 123 | def name(self): |
| 124 | return HTTP_STATUS_CODES.get(410, 'Gone') |
| 125 | |
| 126 | def get_response(self, environ=None, scope=None): |
| 127 | return gone(self.error_msg) |
| 128 | |
| 129 | def __str__(self): |
| 130 | return self.error_msg |
| 131 | |
| 132 | def __repr__(self): |
| 133 | return self.error_msg |
| 134 | |
| 135 | |
| 136 | class ExecuteError(HTTPException): |
no outgoing calls
no test coverage detected