Two custom exception class created for repository