working out how to handle exception based errors in a 'nice' way
This commit is contained in:
parent
bd919cf306
commit
8ccd5390fa
2 changed files with 22 additions and 0 deletions
|
|
@ -0,0 +1,11 @@
|
|||
package dev.activitypub.activitypubbot;
|
||||
|
||||
public class BotNotFoundByUsernameException extends RuntimeException {
|
||||
public BotNotFoundByUsernameException() {
|
||||
super();
|
||||
}
|
||||
|
||||
public BotNotFoundByUsernameException(String message) {
|
||||
super(message);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="ISO-8859-1">
|
||||
<title>Spring Bot - 404</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>404</h1>
|
||||
<h2>User not found: [[${message}]]</h2>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue