Add enum based exception handling
authorSangwan Kwon <sangwan.kwon@samsung.com>
Wed, 6 Nov 2019 05:36:43 +0000 (14:36 +0900)
committerSangwan Kwon <sangwan.kwon@samsung.com>
Fri, 8 Nov 2019 05:40:37 +0000 (14:40 +0900)
commit487bec7fd86778af9d8207cb68075247a6a483d6
tree9592917577d7855bb48822dec1846bdd6733a43b
parent9c7e2b2aa588d3ee1bbbf59ebe710dece8ffcf4c
Add enum based exception handling

Standard c++ throw can not provide information like function, file,
line number. It makes hard to tracking where the exception occured.
So, add macro(THROW) which can track informations.

Syntax:
- THROW(ErrCode::LogicError) << "Additional information about exception";

Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
src/vist/CMakeLists.txt
src/vist/common/CMakeLists.txt [new file with mode: 0644]
src/vist/common/exception.h [new file with mode: 0644]
src/vist/common/tests/exception.cpp [new file with mode: 0644]