All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.arsframework.annotation.Global Maven / Gradle / Ivy

package com.arsframework.annotation;

import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;

/**
 * 全局配置注解
 *
 * @author yongqiang.wu
 */
@Retention(RetentionPolicy.SOURCE)
@Target({ElementType.TYPE, ElementType.CONSTRUCTOR, ElementType.METHOD})
public @interface Global {
    /**
     * 默认参数异常类
     */
    String DEFAULT_ARGUMENT_EXCEPTION = "java.lang.IllegalArgumentException";

    /**
     * 参数验证失败异常类型
     *
     * @return 异常类型
     */
    String exception() default DEFAULT_ARGUMENT_EXCEPTION;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy