Use Class.new to define custom exceptions