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

org.zodiac.reactor.exception.NotFoundException Maven / Gradle / Ivy

The newest version!
package org.zodiac.reactor.exception;

public class NotFoundException extends CommonBusinessException {

    private static final long serialVersionUID = -1897962344718348333L;

    public NotFoundException(String message, Object... args) {
        super(message, 404, args);
    }

    public NotFoundException() {
        this("error.not_found");
    }

    /**
     * Exception that do not populate the thread stack, in some cases that are not sensitive to the thread stack and are uncontrollable for exceptions (e.g., exceptions from unauthenticated requests) are good for performance.
     */
    public static class NoStackTrace extends NotFoundException {

        private static final long serialVersionUID = -8981999377351853980L;

        public NoStackTrace(String code, Object... args) {
            super(code, args);
        }

        public NoStackTrace() {
            super();
        }

        @Override
        public final synchronized Throwable fillInStackTrace() {
            return this;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy