Essentials/Essentials/src/main/java/com/earth2me/essentials/api/UserDoesNotExistException.java

19 lines
457 B
Java
Raw Normal View History

package com.earth2me.essentials.api;
import java.util.UUID;
import static com.earth2me.essentials.I18n.tl;
2020-10-04 18:03:52 +02:00
/**
* Thrown when the requested user does not exist.
*/
2015-04-15 06:06:16 +02:00
public class UserDoesNotExistException extends Exception {
2020-10-03 19:46:05 +02:00
public UserDoesNotExistException(final String name) {
2015-04-15 06:06:16 +02:00
super(tl("userDoesNotExist", name));
}
2020-10-03 19:46:05 +02:00
public UserDoesNotExistException(final UUID uuid) {
super(tl("uuidDoesNotExist", uuid.toString()));
}
}