working out how to handle exception based errors in a 'nice' way

This commit is contained in:
Yvan 2025-01-29 19:44:33 +00:00
parent bd919cf306
commit 8ccd5390fa
2 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,11 @@
package dev.activitypub.activitypubbot;
public class BotNotFoundByUsernameException extends RuntimeException {
public BotNotFoundByUsernameException() {
super();
}
public BotNotFoundByUsernameException(String message) {
super(message);
}
}

View file

@ -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>