custom exception for whole class