Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class CrewNotSelectedException extends Exception{
- private final String message;
- private static CrewNotSelectedException instance;
- public static CrewNotSelectedException factory(){
- if(instance==null){
- instance=new CrewNotSelectedException();
- }
- return instance;
- }
- private CrewNotSelectedException() {
- this.message = "Nevybratý člen posádky";
- }
- @Override
- public String getMessage(){
- return message;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement