iVS3D v2.0.9
Loading...
Searching...
No Matches
ierror.h
1#pragma once
2
3#include <QString>
4
5namespace PLUG {
6
12enum class ErrorCode {
13 RuntimeError,
14 InvalidInput,
15 NotImplemented,
16 ResourceUnavailable,
17 GpuOutOfMemory
18};
19
28class Error {
29public:
30 Error(ErrorCode code, QString message)
31 : code(code), message(std::move(message)) {}
32
33 ErrorCode code;
34 QString message;
35};
36
37} // namespace PLUG
Represents an error with a code and a message. The message is intended for display to the user.
Definition ierror.h:28
ErrorCode
Error codes for the neural network module.
Definition NeuralError.h:29
Plugin interface namespace containing common plugin contracts and helper types.