Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
backend_fullstack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
team_fullastack
backend_fullstack
Merge requests
!1
added endpoints to backend
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
added endpoints to backend
rest-endpoints
into
main
Overview
0
Commits
13
Pipelines
0
Changes
16
Merged
Tini Tran
requested to merge
rest-endpoints
into
main
1 year ago
Overview
0
Commits
13
Pipelines
0
Changes
16
Expand
created endpoints and crud-operations for these endpoints.
0
0
Merge request reports
Compare
main
version 1
f9716d4c
1 year ago
main (base)
and
latest version
latest version
02ac9eb3
13 commits,
1 year ago
version 1
f9716d4c
12 commits,
1 year ago
16 files
+
452
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
16
Search (e.g. *.vue) (Ctrl+P)
src/main/java/ntnu/idatt2105/group44/trivioServer/advice/TrivioNotFoundAdvice.java
0 → 100644
+
17
−
0
Options
package
ntnu.idatt2105.group44.trivioServer.advice
;
import
ntnu.idatt2105.group44.trivioServer.exception.TrivioNotFoundException
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.web.bind.annotation.ControllerAdvice
;
import
org.springframework.web.bind.annotation.ExceptionHandler
;
import
org.springframework.web.bind.annotation.ResponseStatus
;
@ControllerAdvice
public
class
TrivioNotFoundAdvice
{
@ExceptionHandler
@ResponseStatus
(
HttpStatus
.
NOT_FOUND
)
String
TrivioNotFoundHandler
(
TrivioNotFoundException
ex
)
{
return
ex
.
getMessage
();
}
}
Loading