@Target(value=java.lang.annotation.ElementType.TYPE)
@Retention(value=RUNTIME)
@Documented
public @interface ErrorCodeAlternatives
Annotation can be added to the exception class and is used for define list of ErrorCodes from the another exception classes. Annotation
is applied in the ExceptionHandlerAspect in case foreign exception (other than declared service exception) is thrown from the method. If
foreign exception's ErrorCode is in list defined by this annotation, aspect use ErrorCode from the foreign exception rather than default
ErrorCode (M00). This means that new wrapping exception from method definition will carry ErrorCode from the foreign exception.
- Since:
- UES8-07