Using a simpler exception raising method (remaining code)