Commit 19467ad2 authored by Dipl.-Ing. Jonas Stienen's avatar Dipl.-Ing. Jonas Stienen
Browse files

Adding short invalid parameter macro for exception

parent d30c3141
...@@ -47,7 +47,7 @@ public: ...@@ -47,7 +47,7 @@ public:
LAST, LAST,
}; };
ITAException( int uiErrorcode = UNKNOWN, std::string sModule = "", std::string sReason = ""); ITAException( int uiErrorcode = UNKNOWN, std::string sModule = "", std::string sReason = "" );
inline virtual ~ITAException() {}; inline virtual ~ITAException() {};
std::string ToString() const; std::string ToString() const;
...@@ -60,8 +60,9 @@ public: ...@@ -60,8 +60,9 @@ public:
// Helper macros // Helper macros
#define ITA_EXCEPT0( TYPE ) throw ITAException( ITAException::TYPE, __FUNCTION__ ); #define ITA_EXCEPT0( TYPE ) throw ITAException( ITAException::TYPE, __FUNCTION__ );
#define ITA_EXCEPT1( TYPE, REASON ) throw ITAException( ITAException::TYPE, __FUNCTION__, REASON ); #define ITA_EXCEPT1( TYPE, REASON ) throw ITAException( ITAException::TYPE, __FUNCTION__, REASON );
#define ITA_EXCEPT_INVALID_PARAMETER( REASON ) throw ITAException( ITAException::INVALID_PARAMETER, __FUNCTION__, REASON );
//! STL stream output operator //! STL stream output operator
ITA_BASE_API std::ostream& operator<<(std::ostream& os, const ITAException& ex); ITA_BASE_API std::ostream& operator<<( std::ostream& os, const ITAException& ex );
#endif #endif
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment