when YII_DEBUG -> exception, else log LEVEL_WARNING