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

com.wadpam.open.exceptions.NotFoundException Maven / Gradle / Ivy

The newest version!
package com.wadpam.open.exceptions;

import org.springframework.http.HttpStatus;

/**
 * This exception indicates a specific resource not found.
 * @author sosandstrom
 */
public class NotFoundException extends RestException {

    /**
     * Create a not found exception.
     * @param code unique error code that can be used for localization in the app
     * @param message error message
     */
    public NotFoundException(int code, String message) {
        this(code, null, null, message);
    }


    /**
     * Create a not found exception.
     * @param code unique error code that can be used for localization in the app
     * @param developerMessage developer message
     * @param moreInfo typically a url where more info can be found
     * @param message error message
     */
    public NotFoundException(int code, 
            String developerMessage,
            String moreInfo,
            String message) {
        super(code, developerMessage, moreInfo, HttpStatus.NOT_FOUND, message);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy