How to enable error raising for invalid operations.