Spaces:
Build error
Build error
da-policyengine-dev / src /main /java /com /dalab /policyengine /common /ResourceNotFoundException.java
Download src/main/java/com/dalab/policyengine/common/ResourceNotFoundException.java from dalabsai/da-policyengine-dev: direct link, hf CLI and curl.
- Browser
- Download file 555 Bytes
-
https://huggingface.co/spaces/dalabsai/da-policyengine-dev/resolve/refs%2Fpr%2F1/src/main/java/com/dalab/policyengine/common/ResourceNotFoundException.java
- Command line
-
hf download hf://spaces/dalabsai/da-policyengine-dev@refs/pr/1/src/main/java/com/dalab/policyengine/common/ResourceNotFoundException.java
-
curl -L -o ResourceNotFoundException.java https://huggingface.co/spaces/dalabsai/da-policyengine-dev/resolve/refs%2Fpr%2F1/src/main/java/com/dalab/policyengine/common/ResourceNotFoundException.java
555 Bytes
| 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); | |
| } | |
| } |