org.rx.annotation.ErrorCode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rxlib Show documentation
Show all versions of rxlib Show documentation
A set of utilities for Java
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 cause() default Exception.class;
MessageFormatter messageFormatter() default MessageFormatter.MessageFormat;
}