warning: thrown exception type is not nothrow copy constructible.
--HG-- branch : develop
This commit is contained in:
parent
45452d4d77
commit
4d38e3aeee
|
@ -36,7 +36,7 @@
|
|||
* @param error string with error
|
||||
* @param id id
|
||||
*/
|
||||
VExceptionBadId::VExceptionBadId(const QString &error, const quint32 &id)
|
||||
VExceptionBadId::VExceptionBadId(const QString &error, const quint32 &id) V_NOEXCEPT_EXPR (true)
|
||||
:VException(error), id(id), key(QString()){}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
|
@ -45,7 +45,7 @@ VExceptionBadId::VExceptionBadId(const QString &error, const quint32 &id)
|
|||
* @param error string with error
|
||||
* @param key string key
|
||||
*/
|
||||
VExceptionBadId::VExceptionBadId(const QString &error, const QString &key)
|
||||
VExceptionBadId::VExceptionBadId(const QString &error, const QString &key) V_NOEXCEPT_EXPR (true)
|
||||
:VException(error), id(NULL_ID), key(key){}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
|
@ -53,11 +53,11 @@ VExceptionBadId::VExceptionBadId(const QString &error, const QString &key)
|
|||
* @brief VExceptionBadId copy constructor
|
||||
* @param e exception
|
||||
*/
|
||||
VExceptionBadId::VExceptionBadId(const VExceptionBadId &e)
|
||||
VExceptionBadId::VExceptionBadId(const VExceptionBadId &e) V_NOEXCEPT_EXPR (true)
|
||||
:VException(e), id(e.BadId()), key(e.BadKey()){}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
VExceptionBadId &VExceptionBadId::operator=(const VExceptionBadId &e)
|
||||
VExceptionBadId &VExceptionBadId::operator=(const VExceptionBadId &e) V_NOEXCEPT_EXPR (true)
|
||||
{
|
||||
if ( &e == this )
|
||||
{
|
||||
|
|
|
@ -42,10 +42,10 @@
|
|||
class VExceptionBadId : public VException
|
||||
{
|
||||
public:
|
||||
VExceptionBadId(const QString &error, const quint32 &id);
|
||||
VExceptionBadId(const QString &error, const QString &key);
|
||||
VExceptionBadId(const VExceptionBadId &e);
|
||||
VExceptionBadId &operator=(const VExceptionBadId &e);
|
||||
VExceptionBadId(const QString &error, const quint32 &id) V_NOEXCEPT_EXPR (true);
|
||||
VExceptionBadId(const QString &error, const QString &key) V_NOEXCEPT_EXPR (true);
|
||||
VExceptionBadId(const VExceptionBadId &e) V_NOEXCEPT_EXPR (true);
|
||||
VExceptionBadId &operator=(const VExceptionBadId &e) V_NOEXCEPT_EXPR (true);
|
||||
virtual ~VExceptionBadId() V_NOEXCEPT_EXPR (true) Q_DECL_EQ_DEFAULT;
|
||||
|
||||
Q_NORETURN virtual void raise() const override { throw *this; }
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
* @param error string with error
|
||||
* @param str string, where happend error
|
||||
*/
|
||||
VExceptionConversionError::VExceptionConversionError(const QString &error, const QString &str)
|
||||
VExceptionConversionError::VExceptionConversionError(const QString &error, const QString &str) V_NOEXCEPT_EXPR (true)
|
||||
:VException(error), str(str)
|
||||
{
|
||||
Q_ASSERT_X(not str.isEmpty(), Q_FUNC_INFO, "Error converting string is empty");
|
||||
|
@ -49,12 +49,13 @@ VExceptionConversionError::VExceptionConversionError(const QString &error, const
|
|||
* @brief VExceptionConversionError copy constructor
|
||||
* @param e exception
|
||||
*/
|
||||
VExceptionConversionError::VExceptionConversionError(const VExceptionConversionError &e)
|
||||
VExceptionConversionError::VExceptionConversionError(const VExceptionConversionError &e) V_NOEXCEPT_EXPR (true)
|
||||
:VException(e), str(e.String())
|
||||
{}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
VExceptionConversionError &VExceptionConversionError::operator=(const VExceptionConversionError &e)
|
||||
VExceptionConversionError &
|
||||
VExceptionConversionError::operator=(const VExceptionConversionError &e) V_NOEXCEPT_EXPR (true)
|
||||
{
|
||||
if ( &e == this )
|
||||
{
|
||||
|
|
|
@ -41,9 +41,9 @@
|
|||
class VExceptionConversionError : public VException
|
||||
{
|
||||
public:
|
||||
VExceptionConversionError(const QString &error, const QString &str);
|
||||
VExceptionConversionError(const VExceptionConversionError &e);
|
||||
VExceptionConversionError &operator=(const VExceptionConversionError &e);
|
||||
VExceptionConversionError(const QString &error, const QString &str) V_NOEXCEPT_EXPR (true);
|
||||
VExceptionConversionError(const VExceptionConversionError &e) V_NOEXCEPT_EXPR (true);
|
||||
VExceptionConversionError &operator=(const VExceptionConversionError &e) V_NOEXCEPT_EXPR (true);
|
||||
virtual ~VExceptionConversionError() V_NOEXCEPT_EXPR (true) Q_DECL_EQ_DEFAULT;
|
||||
|
||||
Q_NORETURN virtual void raise() const override { throw *this; }
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
* @param domElement dom element
|
||||
*/
|
||||
VExceptionEmptyParameter::VExceptionEmptyParameter(const QString &what, const QString &name,
|
||||
const QDomElement &domElement)
|
||||
const QDomElement &domElement) V_NOEXCEPT_EXPR (true)
|
||||
: VException(what), name(name), tagText(QString()), tagName(QString()), lineNumber(-1)
|
||||
{
|
||||
Q_ASSERT_X(not domElement.isNull(), Q_FUNC_INFO, "domElement is null");
|
||||
|
@ -57,12 +57,12 @@ VExceptionEmptyParameter::VExceptionEmptyParameter(const QString &what, const QS
|
|||
* @brief VExceptionEmptyParameter copy constructor
|
||||
* @param e exception
|
||||
*/
|
||||
VExceptionEmptyParameter::VExceptionEmptyParameter(const VExceptionEmptyParameter &e)
|
||||
VExceptionEmptyParameter::VExceptionEmptyParameter(const VExceptionEmptyParameter &e) V_NOEXCEPT_EXPR (true)
|
||||
:VException(e), name(e.Name()), tagText(e.TagText()), tagName(e.TagName()), lineNumber(e.LineNumber())
|
||||
{}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
VExceptionEmptyParameter &VExceptionEmptyParameter::operator=(const VExceptionEmptyParameter &e)
|
||||
VExceptionEmptyParameter &VExceptionEmptyParameter::operator=(const VExceptionEmptyParameter &e) V_NOEXCEPT_EXPR (true)
|
||||
{
|
||||
if ( &e == this )
|
||||
{
|
||||
|
|
|
@ -44,9 +44,10 @@ class QDomElement;
|
|||
class VExceptionEmptyParameter : public VException
|
||||
{
|
||||
public:
|
||||
VExceptionEmptyParameter(const QString &what, const QString &name, const QDomElement &domElement);
|
||||
VExceptionEmptyParameter(const VExceptionEmptyParameter &e);
|
||||
VExceptionEmptyParameter &operator=(const VExceptionEmptyParameter &e);
|
||||
VExceptionEmptyParameter(const QString &what, const QString &name,
|
||||
const QDomElement &domElement) V_NOEXCEPT_EXPR (true);
|
||||
VExceptionEmptyParameter(const VExceptionEmptyParameter &e) V_NOEXCEPT_EXPR (true);
|
||||
VExceptionEmptyParameter &operator=(const VExceptionEmptyParameter &e) V_NOEXCEPT_EXPR (true);
|
||||
virtual ~VExceptionEmptyParameter() V_NOEXCEPT_EXPR (true) Q_DECL_EQ_DEFAULT;
|
||||
|
||||
Q_NORETURN virtual void raise() const override { throw *this; }
|
||||
|
|
|
@ -28,17 +28,17 @@
|
|||
#include "vexceptioninvalidhistory.h"
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
VExceptionInvalidHistory::VExceptionInvalidHistory(const QString &error)
|
||||
VExceptionInvalidHistory::VExceptionInvalidHistory(const QString &error) V_NOEXCEPT_EXPR (true)
|
||||
:VException(error)
|
||||
{}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
VExceptionInvalidHistory::VExceptionInvalidHistory(const VExceptionInvalidHistory &e)
|
||||
VExceptionInvalidHistory::VExceptionInvalidHistory(const VExceptionInvalidHistory &e) V_NOEXCEPT_EXPR (true)
|
||||
:VException(e)
|
||||
{}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
VExceptionInvalidHistory &VExceptionInvalidHistory::operator=(const VExceptionInvalidHistory &e)
|
||||
VExceptionInvalidHistory &VExceptionInvalidHistory::operator=(const VExceptionInvalidHistory &e) V_NOEXCEPT_EXPR (true)
|
||||
{
|
||||
if ( &e == this )
|
||||
{
|
||||
|
|
|
@ -33,9 +33,9 @@
|
|||
class VExceptionInvalidHistory : public VException
|
||||
{
|
||||
public:
|
||||
explicit VExceptionInvalidHistory(const QString &error);
|
||||
VExceptionInvalidHistory(const VExceptionInvalidHistory &e);
|
||||
VExceptionInvalidHistory &operator=(const VExceptionInvalidHistory &e);
|
||||
explicit VExceptionInvalidHistory(const QString &error) V_NOEXCEPT_EXPR (true);
|
||||
VExceptionInvalidHistory(const VExceptionInvalidHistory &e) V_NOEXCEPT_EXPR (true);
|
||||
VExceptionInvalidHistory &operator=(const VExceptionInvalidHistory &e) V_NOEXCEPT_EXPR (true);
|
||||
virtual ~VExceptionInvalidHistory() V_NOEXCEPT_EXPR (true) Q_DECL_EQ_DEFAULT;
|
||||
|
||||
Q_NORETURN virtual void raise() const override { throw *this; }
|
||||
|
|
|
@ -28,17 +28,17 @@
|
|||
#include "vexceptioninvalidnotch.h"
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
VExceptionInvalidNotch::VExceptionInvalidNotch(const QString &error)
|
||||
VExceptionInvalidNotch::VExceptionInvalidNotch(const QString &error) V_NOEXCEPT_EXPR (true)
|
||||
:VException(error)
|
||||
{}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
VExceptionInvalidNotch::VExceptionInvalidNotch(const VExceptionInvalidNotch &e)
|
||||
VExceptionInvalidNotch::VExceptionInvalidNotch(const VExceptionInvalidNotch &e) V_NOEXCEPT_EXPR (true)
|
||||
:VException(e)
|
||||
{}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
VExceptionInvalidNotch &VExceptionInvalidNotch::operator=(const VExceptionInvalidNotch &e)
|
||||
VExceptionInvalidNotch &VExceptionInvalidNotch::operator=(const VExceptionInvalidNotch &e) V_NOEXCEPT_EXPR (true)
|
||||
{
|
||||
if ( &e == this )
|
||||
{
|
||||
|
|
|
@ -33,9 +33,9 @@
|
|||
class VExceptionInvalidNotch : public VException
|
||||
{
|
||||
public:
|
||||
explicit VExceptionInvalidNotch(const QString &error);
|
||||
VExceptionInvalidNotch(const VExceptionInvalidNotch &e);
|
||||
VExceptionInvalidNotch &operator=(const VExceptionInvalidNotch &e);
|
||||
explicit VExceptionInvalidNotch(const QString &error) V_NOEXCEPT_EXPR (true);
|
||||
VExceptionInvalidNotch(const VExceptionInvalidNotch &e) V_NOEXCEPT_EXPR (true);
|
||||
VExceptionInvalidNotch &operator=(const VExceptionInvalidNotch &e) V_NOEXCEPT_EXPR (true);
|
||||
virtual ~VExceptionInvalidNotch() V_NOEXCEPT_EXPR (true) Q_DECL_EQ_DEFAULT;
|
||||
|
||||
Q_NORETURN virtual void raise() const override { throw *this; }
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
* @param what string with error
|
||||
* @param domElement dom element
|
||||
*/
|
||||
VExceptionObjectError::VExceptionObjectError(const QString &what, const QDomElement &domElement)
|
||||
VExceptionObjectError::VExceptionObjectError(const QString &what, const QDomElement &domElement) V_NOEXCEPT_EXPR (true)
|
||||
:VException(what), tagText(QString()), tagName(QString()), lineNumber(-1)
|
||||
{
|
||||
Q_ASSERT_X(not domElement.isNull(), Q_FUNC_INFO, "domElement is null");
|
||||
|
@ -50,7 +50,7 @@ VExceptionObjectError::VExceptionObjectError(const QString &what, const QDomElem
|
|||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
VExceptionObjectError::VExceptionObjectError(const QString &what)
|
||||
VExceptionObjectError::VExceptionObjectError(const QString &what) V_NOEXCEPT_EXPR (true)
|
||||
:VException(what), tagText(QString()), tagName(QString()), lineNumber(-1)
|
||||
{}
|
||||
|
||||
|
@ -59,12 +59,12 @@ VExceptionObjectError::VExceptionObjectError(const QString &what)
|
|||
* @brief VExceptionObjectError copy constructor
|
||||
* @param e exception
|
||||
*/
|
||||
VExceptionObjectError::VExceptionObjectError(const VExceptionObjectError &e)
|
||||
VExceptionObjectError::VExceptionObjectError(const VExceptionObjectError &e) V_NOEXCEPT_EXPR (true)
|
||||
:VException(e), tagText(e.TagText()), tagName(e.TagName()), lineNumber(e.LineNumber())
|
||||
{}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
VExceptionObjectError &VExceptionObjectError::operator=(const VExceptionObjectError &e)
|
||||
VExceptionObjectError &VExceptionObjectError::operator=(const VExceptionObjectError &e) V_NOEXCEPT_EXPR (true)
|
||||
{
|
||||
if ( &e == this )
|
||||
{
|
||||
|
|
|
@ -44,10 +44,10 @@ class QDomElement;
|
|||
class VExceptionObjectError : public VException
|
||||
{
|
||||
public:
|
||||
VExceptionObjectError(const QString &what, const QDomElement &domElement);
|
||||
explicit VExceptionObjectError(const QString &what);
|
||||
VExceptionObjectError(const VExceptionObjectError &e);
|
||||
VExceptionObjectError &operator=(const VExceptionObjectError &e);
|
||||
VExceptionObjectError(const QString &what, const QDomElement &domElement) V_NOEXCEPT_EXPR (true);
|
||||
explicit VExceptionObjectError(const QString &what) V_NOEXCEPT_EXPR (true);
|
||||
VExceptionObjectError(const VExceptionObjectError &e) V_NOEXCEPT_EXPR (true);
|
||||
VExceptionObjectError &operator=(const VExceptionObjectError &e) V_NOEXCEPT_EXPR (true);
|
||||
virtual ~VExceptionObjectError() V_NOEXCEPT_EXPR (true) Q_DECL_EQ_DEFAULT;
|
||||
|
||||
Q_NORETURN virtual void raise() const override { throw *this; }
|
||||
|
|
|
@ -31,11 +31,11 @@
|
|||
#include "vexception.h"
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
VExceptionUndo::VExceptionUndo(const QString &what)
|
||||
VExceptionUndo::VExceptionUndo(const QString &what) V_NOEXCEPT_EXPR (true)
|
||||
:VException(what)
|
||||
{}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
VExceptionUndo::VExceptionUndo(const VExceptionUndo &e)
|
||||
VExceptionUndo::VExceptionUndo(const VExceptionUndo &e) V_NOEXCEPT_EXPR (true)
|
||||
:VException(e)
|
||||
{}
|
||||
|
|
|
@ -38,8 +38,8 @@
|
|||
class VExceptionUndo : public VException
|
||||
{
|
||||
public:
|
||||
explicit VExceptionUndo(const QString &what);
|
||||
VExceptionUndo(const VExceptionUndo &e);
|
||||
explicit VExceptionUndo(const QString &what) V_NOEXCEPT_EXPR (true);
|
||||
VExceptionUndo(const VExceptionUndo &e) V_NOEXCEPT_EXPR (true);
|
||||
virtual ~VExceptionUndo() V_NOEXCEPT_EXPR (true) Q_DECL_EQ_DEFAULT;
|
||||
|
||||
Q_NORETURN virtual void raise() const override { throw *this; }
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
* @param what string with error
|
||||
* @param domElement som element
|
||||
*/
|
||||
VExceptionWrongId::VExceptionWrongId(const QString &what, const QDomElement &domElement)
|
||||
VExceptionWrongId::VExceptionWrongId(const QString &what, const QDomElement &domElement) V_NOEXCEPT_EXPR (true)
|
||||
:VException(what), tagText(QString()), tagName(QString()), lineNumber(-1)
|
||||
{
|
||||
Q_ASSERT_X(not domElement.isNull(), Q_FUNC_INFO, "domElement is null");
|
||||
|
@ -54,12 +54,12 @@ VExceptionWrongId::VExceptionWrongId(const QString &what, const QDomElement &dom
|
|||
* @brief VExceptionWrongId copy constructor
|
||||
* @param e exception
|
||||
*/
|
||||
VExceptionWrongId::VExceptionWrongId(const VExceptionWrongId &e)
|
||||
VExceptionWrongId::VExceptionWrongId(const VExceptionWrongId &e) V_NOEXCEPT_EXPR (true)
|
||||
:VException(e), tagText(e.TagText()), tagName(e.TagName()), lineNumber(e.LineNumber())
|
||||
{}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
VExceptionWrongId &VExceptionWrongId::operator=(const VExceptionWrongId &e)
|
||||
VExceptionWrongId &VExceptionWrongId::operator=(const VExceptionWrongId &e) V_NOEXCEPT_EXPR (true)
|
||||
{
|
||||
if ( &e == this )
|
||||
{
|
||||
|
|
|
@ -44,9 +44,9 @@ class QDomElement;
|
|||
class VExceptionWrongId : public VException
|
||||
{
|
||||
public:
|
||||
VExceptionWrongId(const QString &what, const QDomElement &domElement);
|
||||
VExceptionWrongId(const VExceptionWrongId &e);
|
||||
VExceptionWrongId &operator=(const VExceptionWrongId &e);
|
||||
VExceptionWrongId(const QString &what, const QDomElement &domElement) V_NOEXCEPT_EXPR (true);
|
||||
VExceptionWrongId(const VExceptionWrongId &e) V_NOEXCEPT_EXPR (true);
|
||||
VExceptionWrongId &operator=(const VExceptionWrongId &e) V_NOEXCEPT_EXPR (true);
|
||||
virtual ~VExceptionWrongId() V_NOEXCEPT_EXPR (true) Q_DECL_EQ_DEFAULT;
|
||||
|
||||
Q_NORETURN virtual void raise() const override { throw *this; }
|
||||
|
|
Loading…
Reference in New Issue
Block a user