Skip to content

Commit

Permalink
new exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
bekzhan-satiev committed Apr 24, 2023
1 parent 4b5fbca commit 17a12db
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
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
) {
}
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);
}
}
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);
}
}

0 comments on commit 17a12db

Please sign in to comment.