source:
src/main/java/com/example/exceptions/InvalidUsernameOrPasswordException.java
Last change on this file was a51a591, checked in by , 14 months ago | |
---|---|
|
|
File size: 366 bytes |
Rev | Line | |
---|---|---|
[a51a591] | 1 | package com.example.exceptions; |
2 | ||
3 | import org.springframework.http.HttpStatus; | |
4 | import org.springframework.web.bind.annotation.ResponseStatus; | |
5 | ||
6 | @ResponseStatus(code = HttpStatus.NOT_FOUND) | |
7 | public class InvalidUsernameOrPasswordException extends RuntimeException { | |
8 | ||
9 | public InvalidUsernameOrPasswordException(){ | |
10 | super("Invalid username or password"); | |
11 | } | |
12 | } |
Note:
See TracBrowser
for help on using the repository browser.