Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
Student-Marks-Microservice
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vishal Vaddadhi
Student-Marks-Microservice
Commits
38e6d8a1
Commit
38e6d8a1
authored
Apr 02, 2021
by
Kyle Muldoon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed exception folder for now, added build directory to gitignore
parent
d144fbcb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
101 deletions
+36
-101
.gitignore
.gitignore
+36
-36
ErrorDetails.java
.../StudentServices/MarksService/exception/ErrorDetails.java
+0
-39
GlobalExceptionHandler.java
...rvices/MarksService/exception/GlobalExceptionHandler.java
+0
-15
ResourceNotFoundException.java
...ces/MarksService/exception/ResourceNotFoundException.java
+0
-11
No files found.
.gitignore
View file @
38e6d8a1
HELP.md
.gradle
#
HELP.md
#
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/
### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/
### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
out/
!**/src/main/**/out/
!**/src/test/**/out/
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
### VS Code ###
.vscode/
#
!gradle/wrapper/gradle-wrapper.jar
#
!**/src/main/**/build/
#
!**/src/test/**/build/
#
###
#
STS ###
#
.apt_generated
#
.classpath
#
.factorypath
#
.project
#
.settings
#
.springBeans
#
.sts4-cache
#
bin/
#
!**/src/main/**/bin/
#
!**/src/test/**/bin/
#
###
#
IntelliJ IDEA ###
#
.idea
#
*.iws
#
*.iml
#
*.ipr
#
out/
#
!**/src/main/**/out/
#
!**/src/test/**/out/
#
###
#
NetBeans ###
#
/nbproject/private/
#
/nbbuild/
#
/dist/
#
/nbdist/
#
/.nb-gradle/
#
###
#
VS Code ###
#
.vscode/
src/main/java/com/StudentServices/MarksService/exception/ErrorDetails.java
deleted
100644 → 0
View file @
d144fbcb
package
com
.
StudentServices
.
MarksService
.
exception
;
import
java.util.Date
;
public
class
ErrorDetails
{
private
Date
timestamp
;
private
String
message
;
private
String
details
;
public
ErrorDetails
(
Date
timestamp
,
String
message
,
String
details
)
{
this
.
timestamp
=
timestamp
;
this
.
message
=
message
;
this
.
details
=
details
;
}
public
Date
getTimestamp
()
{
return
timestamp
;
}
public
void
setTimestamp
(
Date
timestamp
)
{
this
.
timestamp
=
timestamp
;
}
public
String
getMessage
()
{
return
message
;
}
public
void
setMessage
(
String
message
)
{
this
.
message
=
message
;
}
public
String
getDetails
()
{
return
details
;
}
public
void
setDetails
(
String
details
)
{
this
.
details
=
details
;
}
}
src/main/java/com/StudentServices/MarksService/exception/GlobalExceptionHandler.java
deleted
100644 → 0
View file @
d144fbcb
package
com
.
StudentServices
.
MarksService
.
exception
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.web.context.request.WebRequest
;
import
org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
;
import
java.util.Date
;
public
class
GlobalExceptionHandler
extends
ResponseEntityExceptionHandler
{
public
ResponseEntity
<?>
resourceNotFoundException
(
ResourceNotFoundException
ex
,
WebRequest
webRequest
)
{
com
.
nisum
.
employeeservice
.
exception
.
ErrorDetails
errorDetails
=
new
com
.
nisum
.
employeeservice
.
exception
.
ErrorDetails
(
new
Date
(),
ex
.
getMessage
(),
webRequest
.
getDescription
(
false
));
return
new
ResponseEntity
<>(
errorDetails
,
HttpStatus
.
NOT_FOUND
);
}
}
src/main/java/com/StudentServices/MarksService/exception/ResourceNotFoundException.java
deleted
100644 → 0
View file @
d144fbcb
package
com
.
StudentServices
.
MarksService
.
exception
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.web.bind.annotation.ResponseStatus
;
@ResponseStatus
(
value
=
HttpStatus
.
NOT_FOUND
)
public
class
ResourceNotFoundException
extends
Exception
{
public
ResourceNotFoundException
(
String
message
)
{
super
(
message
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment