throw exceptions and create custom exception