aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/designercore/exceptions/rewritingexception.cpp
blob: d2b3b3d8399d7a12da9684b81e2d101b5d3282e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#include "rewritingexception.h"

using namespace QmlDesigner;

RewritingException::RewritingException(int line,
                                       const QByteArray &function,
                                       const QByteArray &file,
                                       const QByteArray &description,
                                       const QString &documentTextContent)
    : Exception(line, function, file, QString::fromUtf8(description))
    , m_documentTextContent(documentTextContent)
{
    createWarning();
}

QString RewritingException::type() const
{
    return QLatin1String("RewritingException");
}

QString RewritingException::documentTextContent() const
{
    return m_documentTextContent;
}