Reworked data types, part II
This commit is contained in:
16
bc.cpp
16
bc.cpp
@@ -7,6 +7,22 @@
|
||||
#include <chrono>
|
||||
#include <thread>
|
||||
|
||||
|
||||
//! erzeugt einen std::runtime_error mit text und optionalem parameter
|
||||
|
||||
BCException::BCException(const QString& what, const QString& param )
|
||||
: std::runtime_error( param.isEmpty() ? what.toStdString() : QString( "%1: %2" ).arg(what,param).toStdString( ) )
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
BCException::BCException( const QString& what, int errCode )
|
||||
: std::runtime_error( QString( "%1: %2" ).arg(what,errCode).toStdString( ) )
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
namespace bc
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user