eclipse-tractusx / portal-backend

Portal Backend
Apache License 2.0
10 stars 22 forks source link

Error handling in Administrative Service #1183

Open AnuragNagpure opened 3 days ago

AnuragNagpure commented 3 days ago

Description

Implement new error handling in below mentioned Administrative Services Controller and respective Business Logic CompanyDataController DocumentsController IdentityProviderController InvitationController MailingController NetworkController PartnerNetworkController RegistrationStatusController ServiceAccountController SubscriptionConfigurationController UserController

All supported exceptions need to get transferred to the new error response method.

Acceptance Criteria

Implement for all controller and its business logic the new error handling - see details regarding the structure below.

{ "type": "string", "title": "string", "status": 0, "errors": { "additionalProp1": [ "string" ], "additionalProp2": [ "string" ], "additionalProp3": [ "string" ] }, "errorId": "string", "details": [ { "errorCode": "string", "type": "string", "message": "string", "parameters": [ { "name": "string", "value": "string" } ] } ] }

Additional Information

Please refer the new implementation structure in Administrative >> ErrorHandling >> AdministrationRegistrationErrorMessageContainer.cs