mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-27 14:20:34 +05:00
Exception::Throw
This commit is contained in:
parent
ba472f7a11
commit
ad99e5fdea
@ -31,6 +31,23 @@ namespace ngcore
|
|||||||
: 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,
|
||||||
int ind, int imin, int imax) : Exception("")
|
int ind, int imin, int imax) : Exception("")
|
||||||
|
Loading…
Reference in New Issue
Block a user