[CRUDController]Allowed throw exception on debug mode.
Merge pull request #1982 from aitboudad/patch-2

[CRUDController]Allowed throw exception on debug mode
Merge remote-tracking branch 'origin/master'