Use Exception instead of Error.