better exception logging

This commit is contained in:
2017-03-19 09:08:41 +01:00
parent aadc9cbd21
commit 9ab5d76d93
4 changed files with 41 additions and 57 deletions

View File

@@ -0,0 +1,18 @@
package org.lucares.pdbui;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(value = HttpStatus.NOT_FOUND, reason = "Not Found")
public class NotFoundException extends RuntimeException {
private static final long serialVersionUID = 694206253376122420L;
public NotFoundException(final String message, final Throwable cause) {
super(message, cause);
}
public NotFoundException(final Throwable cause) {
super(cause);
}
}