mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 22:00:33 +05:00
Exception::Throw
This commit is contained in:
parent
ba472f7a11
commit
ad99e5fdea
@ -30,6 +30,23 @@ namespace ngcore
|
|||||||
Exception :: Exception(std::string_view s1, std::string_view s2, std::string_view s3)
|
Exception :: Exception(std::string_view s1, std::string_view s2, std::string_view s3)
|
||||||
: Exception(std::string(s1)+std::string(s2)+std::string(s3))
|
: Exception(std::string(s1)+std::string(s2)+std::string(s3))
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
|
|
||||||
|
void Exception :: Throw (std::string_view s1)
|
||||||
|
{
|
||||||
|
throw Exception(std::string(s1));
|
||||||
|
}
|
||||||
|
|
||||||
|
void Exception :: Throw (std::string_view s1, std::string_view s2)
|
||||||
|
{
|
||||||
|
throw Exception(std::string(s1)+std::string(s2));
|
||||||
|
}
|
||||||
|
|
||||||
|
void Exception :: Throw (std::string_view s1, std::string_view s2, std::string_view s3)
|
||||||
|
{
|
||||||
|
throw Exception(std::string(s1)+std::string(s2)+std::string(s3));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
RangeException :: RangeException (// const std::string & where,
|
RangeException :: RangeException (// const std::string & where,
|
||||||
const char * where,
|
const char * where,
|
||||||
|
Loading…
Reference in New Issue
Block a user