Allowed to throw an exception on debug mode