how to throw an exception explicitly