try:
pass
except:
print("Ошибка")
class MyError(Exception):
def __init__(self, text):
self.txt = text
a = input("Input positive integer: ")
try:
a = int(a)
if a < 0:
raise MyError("You give negative!")
except ValueError:
print("Error type of value!")
except MyError as mr:
print(mr)
else:
print(a)