source: source/MovieZilla-master/src/main/java/com/example/demo/exceptions/UsernameAlreadyExistsException.java

Last change on this file was fc7ec52, checked in by darkopopovski <darkopopovski39@…>, 2 years ago

all files

  • Property mode set to 100644
File size: 258 bytes
Line 
1package com.example.demo.exceptions;
2
3public class UsernameAlreadyExistsException extends RuntimeException{
4 public UsernameAlreadyExistsException(String username) {
5 super(String.format("User with username: %s already exists", username));
6 }
7}
Note: See TracBrowser for help on using the repository browser.