File indexing completed on 2024-05-05 17:43:11
0001 /* 0002 * SPDX-FileCopyrightText: 2017 Ivan Cukic <ivan.cukic (at) kde.org> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0005 */ 0006 0007 #include "commandresult.h" 0008 0009 namespace PlasmaVault 0010 { 0011 Error::Error(Code code, const QString &message, const QString &out, const QString &err) 0012 : m_code(code) 0013 , m_message(message) 0014 , m_out(out) 0015 , m_err(err) 0016 { 0017 } 0018 0019 Error::Code Error::code() const 0020 { 0021 return m_code; 0022 } 0023 0024 QString Error::message() const 0025 { 0026 return m_message; 0027 } 0028 0029 QString Error::out() const 0030 { 0031 return m_out; 0032 } 0033 0034 QString Error::err() const 0035 { 0036 return m_err; 0037 } 0038 0039 } // namespace PlasmaVault