CAM-1035 ExceptionType in ErrorCode

This pull request adds the possibility to define a exception type in errorCode. It is related to CAM-1035.