Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Technical Acoustics (ITA)
ITABase
Commits
19467ad2
Commit
19467ad2
authored
Jun 13, 2017
by
Dipl.-Ing. Jonas Stienen
Browse files
Adding short invalid parameter macro for exception
parent
d30c3141
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/ITAException.h
View file @
19467ad2
...
...
@@ -47,7 +47,7 @@ public:
LAST
,
};
ITAException
(
int
uiErrorcode
=
UNKNOWN
,
std
::
string
sModule
=
""
,
std
::
string
sReason
=
""
);
ITAException
(
int
uiErrorcode
=
UNKNOWN
,
std
::
string
sModule
=
""
,
std
::
string
sReason
=
""
);
inline
virtual
~
ITAException
()
{};
std
::
string
ToString
()
const
;
...
...
@@ -60,8 +60,9 @@ public:
// Helper macros
#define ITA_EXCEPT0( TYPE ) throw ITAException( ITAException::TYPE, __FUNCTION__ );
#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
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment