Added custom exception.