Alchemy 0.0.9999
Alchemy is a C++ library for multimedia file management.
Loading...
Searching...
No Matches
exception.hxx
1#pragma once
2
3#include <Alchemy/visibility.h>
4#include <StormByte/exception.hxx>
5
6#include <filesystem>
7
12namespace Alchemy {
17 class ALCHEMY_PUBLIC Exception:public StormByte::Exception {
18 public:
23 Exception(const std::string& message);
24
29 Exception(const Exception& other) = default;
30
35 Exception(Exception&& other) noexcept = default;
36
42 Exception& operator=(const Exception& other) = default;
43
49 Exception& operator=(Exception&& other) noexcept = default;
50
54 virtual ~Exception() noexcept = default;
55 };
56
61 class ALCHEMY_PUBLIC StreamError:public Exception {
62 public:
67 StreamError(const std::string& message);
68
73 StreamError(const StreamError& other) = default;
74
79 StreamError(StreamError&& other) noexcept = default;
80
86 StreamError& operator=(const StreamError& other) = default;
87
93 StreamError& operator=(StreamError&& other) noexcept = default;
94
98 ~StreamError() noexcept override = default;
99 };
100}
The base exception class for the Alchemy library.
Definition exception.hxx:17
virtual ~Exception() noexcept=default
Destructor.
Exception(const std::string &message)
Constructor.
Exception(Exception &&other) noexcept=default
Move constructor.
Exception & operator=(const Exception &other)=default
Copy assignment operator.
Exception(const Exception &other)=default
Copy constructor.
Exception & operator=(Exception &&other) noexcept=default
Move assignment operator.
Exception thrown when a stream error occurs.
Definition exception.hxx:61
StreamError & operator=(StreamError &&other) noexcept=default
Move assignment operator.
StreamError & operator=(const StreamError &other)=default
Copy assignment operator.
StreamError(const std::string &message)
Constructor.
StreamError(const StreamError &other)=default
Copy constructor.
StreamError(StreamError &&other) noexcept=default
Move constructor.
~StreamError() noexcept override=default
Destructor.
All the classes and functions of the Alchemy library.