Added custom exception class