Skip to content
Snippets Groups Projects

feat: add exception classes and handler class

Merged Henrik requested to merge feat/add-exception-handler into master
7 files
+ 235
0
Compare changes
  • Side-by-side
  • Inline
Files
7
 
package no.ntnu.idi.stud.savingsapp.exception.auth;
 
 
/**
 
* Exception thrown when authentication fails due to invalid credentials.
 
*/
 
public class InvalidCredentialsException extends RuntimeException {
 
 
/**
 
* Constructs an InvalidCredentialsException with the default message.
 
*/
 
public InvalidCredentialsException() {
 
super("Invalid credentials");
 
}
 
}
Loading