File indexing completed on 2024-12-01 04:48:05
0001 /* 0002 This file is part of oxaccess. 0003 0004 SPDX-FileCopyrightText: 2012 Marco Nelles <marco.nelles@credativ.com> 0005 0006 SPDX-License-Identifier: LGPL-2.0-or-later 0007 */ 0008 0009 #pragma once 0010 0011 #include <QString> 0012 0013 namespace OXA 0014 { 0015 /** 0016 * Namespace that contains methods for handling OX errors. 0017 * 0018 * @author Marco Nelles <marco.nelles@credativ.com> 0019 */ 0020 namespace OXErrors 0021 { 0022 enum EditErrorID { 0023 EditErrorUndefined = 0, 0024 ConcurrentModification, 0025 ObjectNotFound, 0026 NoPermissionForThisAction, 0027 ConflictsDetected, 0028 MissingMandatoryFields, 0029 AppointmentConflicts, 0030 InternalServerError 0031 }; 0032 0033 /** 0034 * Parse error id from edit error text string @p errorText 0035 */ 0036 EditErrorID getEditErrorID(const QString &errorText); 0037 } 0038 }