Spaces:
Build error
Build error
da-policyengine-dev
/
src
/main
/java
/com
/dalab
/policyengine
/common
/ResourceNotFoundException.java
| package com.dalab.policyengine.common; | |
| import org.springframework.http.HttpStatus; | |
| import org.springframework.web.bind.annotation.ResponseStatus; | |
| public class ResourceNotFoundException extends RuntimeException { | |
| public ResourceNotFoundException(String resourceName, String fieldName, String fieldValue) { | |
| super(String.format("%s not found with %s : '%s'", resourceName, fieldName, fieldValue)); | |
| } | |
| public ResourceNotFoundException(String message) { | |
| super(message); | |
| } | |
| } |