File size: 6,361 Bytes
985c397 | 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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 | // SPDX-License-Identifier: LGPL-2.1-or-later
/***************************************************************************
* Copyright (c) 2023 David Carter <dcarter@david.carter.ca> *
* *
* This file is part of FreeCAD. *
* *
* FreeCAD is free software: you can redistribute it and/or modify it *
* under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation, either version 2.1 of the *
* License, or (at your option) any later version. *
* *
* FreeCAD is distributed in the hope that it will be useful, but *
* WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
* Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public *
* License along with FreeCAD. If not, see *
* <https://www.gnu.org/licenses/>. *
* *
**************************************************************************/
#ifndef MATERIAL_EXCEPTIONS_H
#define MATERIAL_EXCEPTIONS_H
#include <QString>
#include <Base/BaseClass.h>
#include <Base/Exception.h>
namespace Materials
{
class Uninitialized: public Base::Exception
{
public:
Uninitialized();
explicit Uninitialized(const char* msg);
explicit Uninitialized(const QString& msg);
~Uninitialized() noexcept override;
};
class ModelNotFound: public Base::Exception
{
public:
ModelNotFound();
explicit ModelNotFound(const char* msg);
explicit ModelNotFound(const QString& msg);
~ModelNotFound() noexcept override;
};
class InvalidMaterialType: public Base::Exception
{
public:
InvalidMaterialType();
explicit InvalidMaterialType(const char* msg);
explicit InvalidMaterialType(const QString& msg);
~InvalidMaterialType() noexcept override;
};
class MaterialNotFound: public Base::Exception
{
public:
MaterialNotFound();
explicit MaterialNotFound(const char* msg);
explicit MaterialNotFound(const QString& msg);
~MaterialNotFound() noexcept override;
};
class MaterialExists: public Base::Exception
{
public:
MaterialExists();
explicit MaterialExists(const char* msg);
explicit MaterialExists(const QString& msg);
~MaterialExists() noexcept override;
};
class MaterialReadError: public Base::Exception
{
public:
MaterialReadError();
explicit MaterialReadError(const char* msg);
explicit MaterialReadError(const QString& msg);
~MaterialReadError() noexcept override;
};
class PropertyNotFound: public Base::Exception
{
public:
PropertyNotFound();
explicit PropertyNotFound(const char* msg);
explicit PropertyNotFound(const QString& msg);
~PropertyNotFound() noexcept override;
};
class LibraryNotFound: public Base::Exception
{
public:
LibraryNotFound();
explicit LibraryNotFound(const char* msg);
explicit LibraryNotFound(const QString& msg);
~LibraryNotFound() noexcept override;
};
class CreationError: public Base::Exception
{
public:
CreationError();
explicit CreationError(const char* msg);
explicit CreationError(const QString& msg);
~CreationError() noexcept override;
};
class InvalidModel: public Base::Exception
{
public:
InvalidModel();
explicit InvalidModel(const char* msg);
explicit InvalidModel(const QString& msg);
~InvalidModel() noexcept override;
};
class InvalidMaterial: public Base::Exception
{
public:
InvalidMaterial();
explicit InvalidMaterial(const char* msg);
explicit InvalidMaterial(const QString& msg);
~InvalidMaterial() noexcept override;
};
class InvalidProperty: public Base::Exception
{
public:
InvalidProperty();
explicit InvalidProperty(const char* msg);
explicit InvalidProperty(const QString& msg);
~InvalidProperty() noexcept override;
};
class InvalidLibrary: public Base::Exception
{
public:
InvalidLibrary();
explicit InvalidLibrary(const char* msg);
explicit InvalidLibrary(const QString& msg);
~InvalidLibrary() noexcept override;
};
class InvalidIndex: public Base::Exception
{
public:
InvalidIndex();
explicit InvalidIndex(const char* msg);
explicit InvalidIndex(const QString& msg);
~InvalidIndex() noexcept override;
};
class UnknownValueType: public Base::Exception
{
public:
UnknownValueType();
explicit UnknownValueType(const char* msg);
explicit UnknownValueType(const QString& msg);
~UnknownValueType() noexcept override;
};
class DeleteError: public Base::Exception
{
public:
DeleteError();
explicit DeleteError(const char* msg);
explicit DeleteError(const QString& msg);
~DeleteError() noexcept override;
};
class RenameError: public Base::Exception
{
public:
RenameError();
explicit RenameError(const char* msg);
explicit RenameError(const QString& msg);
~RenameError() noexcept override;
};
class ReplacementError: public Base::Exception
{
public:
ReplacementError();
explicit ReplacementError(const char* msg);
explicit ReplacementError(const QString& msg);
~ReplacementError() noexcept override;
};
class UpdateError: public Base::Exception
{
public:
UpdateError();
explicit UpdateError(const char* msg);
explicit UpdateError(const QString& msg);
~UpdateError() noexcept override;
};
class MoveError: public Base::Exception
{
public:
MoveError();
explicit MoveError(const char* msg);
explicit MoveError(const QString& msg);
~MoveError() noexcept override;
};
class ConnectionError: public Base::Exception
{
public:
ConnectionError();
explicit ConnectionError(const char* msg);
explicit ConnectionError(const QString& msg);
~ConnectionError() noexcept override;
};
} // namespace Materials
#endif // MATERIAL_EXCEPTIONS_H
|