Send resource id to NotFoundError as well as resource name.
This commit is contained in:
parent
1222220452
commit
78a8201323
@ -1,6 +1,7 @@
|
|||||||
class NotFoundError(Exception):
|
class NotFoundError(Exception):
|
||||||
def __init__(self, resource_name):
|
def __init__(self, resource_name, resource_id=None):
|
||||||
self.resource_name = resource_name
|
self.resource_name = resource_name
|
||||||
|
self.resource_id = resource_id
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def message(self):
|
def message(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user