
org.rx.annotation.ErrorCode Maven / Gradle / Ivy
package org.rx.annotation;
import java.lang.annotation.*;
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Repeatable(ErrorCode.ErrorCodes.class)
public @interface ErrorCode {
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@interface ErrorCodes {
ErrorCode[] value();
}
enum MessageFormatter {
StringFormat,
MessageFormat
}
String value() default "";
Class extends Throwable> cause() default Exception.class;
MessageFormatter messageFormatter() default MessageFormatter.MessageFormat;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy