@@ -0,0 +1,1696 @@
+package com.javarush.task.task23.task2308;%0A%0A/* %0A%D0%A0%D0%B5%D1%84%D0%B0%D0%BA%D1%82%D0%BE%D1%80%D0%B8%D0%BD%D0%B3, %D0%B2%D0%BB%D0%BE%D0%B6%D0%B5%D0%BD%D0%BD%D1%8B%D0%B5 %D0%BA%D0%BB%D0%B0%D1%81%D1%81%D1%8B%0A*/%0Apublic class Solution %7B%0A    public class ServerNotAccessibleException extends Exception %7B%0A        public ServerNotAccessibleException() %7B%0A            super(%22Server is not accessible for now.%22);%0A        %7D%0A%0A        public ServerNotAccessibleException(Throwable cause) %7B%0A            super(%22Server is not accessible for now.%22, cause);%0A        %7D%0A    %7D%0A%0A    public class UnauthorizedUserException extends Exception %7B%0A        public UnauthorizedUserException() %7B%0A            super(%22User is not authorized.%22);%0A        %7D%0A%0A        public UnauthorizedUserException(Throwable cause) %7B%0A            super(%22User is not authorized.%22, cause);%0A        %7D%0A    %7D%0A%0A    public class BannedUserException extends Exception %7B%0A        public BannedUserException() %7B%0A            super(%22User is banned.%22);%0A        %7D%0A%0A        public BannedUserException(Throwable cause) %7B%0A            super(%22User is banned.%22, cause);%0A        %7D%0A    %7D%0A%0A    public class RestrictionException extends Exception %7B%0A        public RestrictionException() %7B%0A            super(%22Access is denied.%22);%0A        %7D%0A%0A        public RestrictionException(Throwable cause) %7B%0A            super(%22Access is denied.%22, cause);%0A        %7D%0A    %7D%0A%0A    public static final class Constants %7B%0A        public static final String SERVER_IS_NOT_ACCESSIBLE_FOR_NOW = %22Server is not accessible for now.%22;%0A        public static final String USER_IS_NOT_AUTHORIZED = %22User is not authorized.%22;%0A        public static final String USER_IS_BANNED = %22User is banned.%22;%0A        public static final String ACCESS_IS_DENIED = %22Access is denied.%22;%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A%0A    %7D%0A%7D%0A

Task --> 2308