Make it possible to enable/disable exception throwing in the validate method.