-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4b5fbca
commit 17a12db
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
server/src/main/java/com/horizonbuilders/server/dto/request/RefreshAccessTokenRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.horizonbuilders.server.dto.request; | ||
|
||
import jakarta.validation.constraints.NotBlank; | ||
|
||
public record RefreshAccessTokenRequest( | ||
@NotBlank(message = "refresh token cannot be empty!") | ||
String refreshToken | ||
) { | ||
} |
7 changes: 7 additions & 0 deletions
7
server/src/main/java/com/horizonbuilders/server/exception/ResourceNotFoundException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.horizonbuilders.server.exception; | ||
|
||
public class ResourceNotFoundException extends RuntimeException { | ||
public ResourceNotFoundException(String message) { | ||
super(message); | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
server/src/main/java/com/horizonbuilders/server/exception/UnauthorizedException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.horizonbuilders.server.exception; | ||
|
||
public class UnauthorizedException extends RuntimeException { | ||
public UnauthorizedException(String message) { | ||
super(message); | ||
} | ||
} |