Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GitBull
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIP
Labrador
GitBull
Merge requests
!39
Resolve "'Status' button for an edition results in 404"
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Resolve "'Status' button for an edition results in 404"
61-status-button-for-an-edition-results-in-404
into
development
Overview
0
Commits
2
Pipelines
5
Changes
3
Merged
Resolve "'Status' button for an edition results in 404"
Cédric Willekens
requested to merge
61-status-button-for-an-edition-results-in-404
into
development
10 months ago
Overview
0
Commits
2
Pipelines
5
Changes
3
Closes
#61 (closed)
0
0
Merge request reports
Compare
development
version 1
365d5215
10 months ago
development (base)
and
latest version
latest version
7549b1f9
2 commits,
10 months ago
version 1
365d5215
2 commits,
10 months ago
3 files
+
49
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
src/main/java/nl/tudelft/gitbull/controller/ErrorController.java
+
13
−
0
View file @ 7549b1f9
Edit in single-file editor
Open in Web IDE
Show full file
@@ -17,6 +17,7 @@
*/
package
nl.tudelft.gitbull.controller
;
import
javax.persistence.EntityNotFoundException
;
import
javax.servlet.http.HttpServletResponse
;
import
org.slf4j.Logger
;
@@ -49,4 +50,16 @@ public class ErrorController extends ResponseEntityExceptionHandler {
};
}
/**
* Handles a NOT FOUND exception occurring within the server. This method simply logs the event and
* redirects the user to a 404 specific error page.
*
* @return The thymeleaf template to be filled out.
*/
@ResponseStatus
(
HttpStatus
.
NOT_FOUND
)
@ExceptionHandler
(
EntityNotFoundException
.
class
)
public
String
handle404Exception
()
{
return
"error/404"
;
}
}
Loading