katharsis-project / katharsis-framework

Katharsis adds powerful layer for RESTful endpoints providing implementenation of JSON:API standard
http://katharsis.io
Apache License 2.0
135 stars 65 forks source link

Katharsis client: Ability to add custom exception mapper #444

Open ckarthik17 opened 7 years ago

ckarthik17 commented 7 years ago

Currently, ExceptionMapperRegistryBuilder always adds KatharsisExceptionMapper as a default exception mapper for katharsis client. So, even when I try to add an exception mapper by overriding getExceptionMapperRegistry(), always the default one is selected and my custom mapper is ignored.

All the related classes are sealed ExceptionMapperType, ExceptionMapperRegistry for extension. Is there any workaround?