Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
package com.mentora.backend.error;

/**
* Exception thrown when a user is not authenticated.
*/
public class UserNotAuthenticatedException extends RuntimeException {

public UserNotAuthenticatedException() {
super("User is not authenticated");
super("User not authenticated");
}

public UserNotAuthenticatedException(String message) {
super(message);
}

public UserNotAuthenticatedException(String message, Throwable cause) {
super(message, cause);
}
}
}