Doom9527 / aristotle-webservice

👑 A web servide enables you to create knowledge graph.
https://aristotle-ws.com
16 stars 0 forks source link

Remove the custom exception class and refactor the global exception handler #56

Closed Doom9527 closed 4 weeks ago

Doom9527 commented 4 weeks ago

Changelog

Changed

Wrapped the return values in the global exception handler with ResponseEntity to set the status code.

Removed

Removed all custom exception classes and replaced them with Java's built-in NoSuchElementException, IllegalArgumentException, and IllegalStateException. Deleted BindNodeDTO because it was redundant with NodeRelationDTO.