From: Hyunjin Park Date: Tue, 8 Sep 2015 05:27:38 +0000 (+0900) Subject: [filesystem] add exception log X-Git-Tag: submit/tizen/20151026.073646^2^2~134 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=19d4e3a01b10c2a55f62c2a00d8c7e52a1351ea7;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [filesystem] add exception log Change-Id: I660a07af47e3d993d58de441693afb4f5685aa81 --- diff --git a/src/filesystem/filesystem_instance.cc b/src/filesystem/filesystem_instance.cc index b90676d9..b4879472 100755 --- a/src/filesystem/filesystem_instance.cc +++ b/src/filesystem/filesystem_instance.cc @@ -541,31 +541,40 @@ void FilesystemInstance::PrepareError(const FilesystemError& error, picojson::ob LoggerD("enter"); switch (error) { case FilesystemError::None: + LoggerE("UnknownException - PLATFORM ERROR"); ReportError(UnknownException("PLATFORM ERROR"), out); break; case FilesystemError::NotFound: + LoggerE("NotFoundException - PLATFORM ERROR"); ReportError(NotFoundException("PLATFORM ERROR"), out); break; case FilesystemError::FileExists: + LoggerE("IOException - File already exists"); ReportError(IOException("File already exists"), out); break; case FilesystemError::DirectoryExists: + LoggerE("IOException - Directory already exists"); ReportError(IOException("Directory already exists"), out); break; case FilesystemError::PermissionDenied: + LoggerE("IOException - Permission denied"); ReportError(IOException("Permission denied"), out); break; case FilesystemError::IOError: + LoggerE("IOException - IO Error"); ReportError(IOException("IO Error"), out); break; case FilesystemError::Other: - ReportError(UnknownException("PLATFORM ERROR"), out); + LoggerE("UnknownException - PLATFORM ERROR other"); + ReportError(UnknownException("PLATFORM ERROR other"), out); break; case FilesystemError::InvalidValue: + LoggerE("InvalidValuesException - PLATFORM ERROR"); ReportError(InvalidValuesException("PLATFORM ERROR"), out); break; default: - ReportError(UnknownException("PLATFORM ERROR"), out); + LoggerE("UnknownException - PLATFORM ERROR default"); + ReportError(UnknownException("PLATFORM ERROR default"), out); break; } }