ecf6234cfe
Since this is a change to the table schema for all services using the ping adapter, you will have to delete the tables relating to them. - elstat.blueprints: add incidents blueprint (WIP) - elstat.blueprints: add decorators.py - elstat.blueprints: add errors.py - elstat.manager: add incidents & incident_stages tables - run: add handler for ApiError
8 lines
162 B
Python
8 lines
162 B
Python
class ApiError(Exception):
|
|
@property
|
|
def message(self):
|
|
return self.args[0]
|
|
|
|
@property
|
|
def status_code(self):
|
|
return self.args[1]
|