You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When doing repository.get() there is an option to set custom message when various error occur, but there is no option for NotFoundError.
It will be very convenient if this will be added.
Basic Example
org=awaitorganizations_service.get_one_or_none(Organization.id==organization_id)
ifnotorg:
raiseNotFoundException("Organization not found")
The above will become:
org=awaitorganizations_service.get(
organization_id, error_messages=ErrorMessages(not_found="Organization not found")
)
Drawbacks and Impact
No response
Unresolved questions
No response
The text was updated successfully, but these errors were encountered:
Summary
When doing
repository.get()
there is an option to set custom message when various error occur, but there is no option forNotFoundError
.It will be very convenient if this will be added.
Basic Example
The above will become:
Drawbacks and Impact
No response
Unresolved questions
No response
The text was updated successfully, but these errors were encountered: