3#include "spark/base/Export.h"
4#include "spark/base/Macros.h"
5#include "spark/base/details/Exception.h"
7#include <source_location>
13#define SPARK_BASE_DEFINE_EXCEPTION(DerivedClass) \
14 class SPARK_BASE_EXPORT DerivedClass : public spark::base::details::Exception \
17 DerivedClass(const std::string_view& message, const std::source_location& source_location = std::source_location::current()) \
18 : base::details::Exception(#DerivedClass, message, source_location) \
129#undef SPARK_BASE_DEFINE_EXCEPTION
Exception thrown when an argument is out of range.
Definition Exception.h:101
Exception thrown when an argument is not valid.
Definition Exception.h:32
Exception thrown when failing to initialize a window.
Definition Exception.h:126
Exception thrown when starting a command buffer recording while it is already recording.
Definition Exception.h:96
Exception thrown when failing to create a shader.
Definition Exception.h:121
Exception thrown on failure when trying to obtain a lock on a file. This can occurs on several situat...
Definition Exception.h:61
Exception thrown when trying to open a file that could not be opened. This can occurs on several situ...
Definition Exception.h:55
Exception thrown when trying to create multiple instances of an application, which is not allowed.
Definition Exception.h:91
Exception thrown when an I/O operation on a file could not be achieved.
Definition Exception.h:48
Exception thrown when a descriptor does not have the expected type.
Definition Exception.h:116
Exception thrown when a functionality which is not implemented yet is called.
Definition Exception.h:37
Exception thrown when a pointer is null and should't be.
Definition Exception.h:66
Exception thrown when trying to read/write past the end of a buffer.
Definition Exception.h:81
Exception thrown when calling a function which requires a render pass to be ended while it is not.
Definition Exception.h:106
Exception thrown when calling a function which requires a render pass to be started while it is not.
Definition Exception.h:111
Exception thrown when an argument does not have the expected type.
Definition Exception.h:27
Exception thrown when trying to manipulate an uninitialized socket.
Definition Exception.h:71
Exception thrown when something strange happened and we have no idea of why this is happening....
Definition Exception.h:43
Exception thrown when trying to serialize an object when the serializer is not in writing mode or vic...
Definition Exception.h:76