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

restx.exceptions.ErrorCode Maven / Gradle / Ivy

There is a newer version: 1.2.0-rc2
Show newest version
package restx.exceptions;

import restx.http.HttpStatus;

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

/**
 * User: xavierhanin
 * Date: 3/19/13
 * Time: 2:32 PM
 */
@Retention(RetentionPolicy.RUNTIME)
public @interface ErrorCode {
    /**
     * error code.
     * @return
     */
    String code();

    /**
     * error description.
     * @return
     */
    String description();

    /**
     * HTTP error status.
     * @return
     */
    HttpStatus status() default HttpStatus.BAD_REQUEST;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy