Added a custom exception for addfriend