ruanwenjun commented on issue #15183: URL: https://github.com/apache/dolphinscheduler/issues/15183#issuecomment-1839868773
>  > > 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]
