ruanwenjun commented on issue #15183:
URL: 
https://github.com/apache/dolphinscheduler/issues/15183#issuecomment-1839868773

   > 
![图片](https://private-user-images.githubusercontent.com/36791902/287628491-9a802aaf-7d4c-4be0-9eb6-fe5e847d0f6b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTEiLCJleHAiOjE3MDE3NDE0NzgsIm5iZiI6MTcwMTc0MTE3OCwicGF0aCI6Ii8zNjc5MTkwMi8yODc2Mjg0OTEtOWE4MDJhYWYtN2Q0Yy00YmUwLTllYjYtZmU1ZTg0N2QwZjZiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFJV05KWUFYNENTVkVINTNBJTJGMjAyMzEyMDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjMxMjA1VDAxNTI1OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJmODBmOTk0YzM3OTQ0YWYyNGNlYTQ1MTRiYTJkNTYyMGJjY2VmM2U5NDM4MGU5Mjk3OTU1YTI0NjJkNmVhZmEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.n3yEx3fpEh99U3TvrRDKnk6HCpEGdGDPWzStzf8jXpA)
   > 
   > hi @ruanwenjun, How to deal with status in this place? The interface 
cannot be used here. Should I create an annotation for each newly separated 
status enumeration?
   > 
   > ```java
   > public @interface UserException {
   >    UserStatus value();
   > }
   > 
   > public @interface TaskException {
   >     TaskStatus value();
   > }
   > ```
   
   There is no needed to add annotation for each api, `@ApiException` can be 
removed, this is used to deal with unknown exception, this is not convenient, 
since it will hide the exception message.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to