Using exceptions intead or pairs as error
Add custom exception