Adding new decorator method to raise internal exceptions in case of known error messages.

Signed-off-by: Raphael Lullis <raphael@lullis.net>