Stratax 0.4.0rc1
Loading...
Searching...
No Matches
Exceptions.hpp
Go to the documentation of this file.
1
4#pragma once
5
6#include <stdexcept>
7
8namespace Exceptions {
9
11class StrataxError : public std::runtime_error
12{
13public:
14 using std::runtime_error::runtime_error;
15};
16
18class ShapeError : public StrataxError { public: using StrataxError::StrataxError; };
20class DimensionError : public StrataxError { public: using StrataxError::StrataxError; };
22class RankError : public StrataxError { public: using StrataxError::StrataxError; };
24class IndexError : public StrataxError { public: using StrataxError::StrataxError; };
26class TypeError : public StrataxError { public: using StrataxError::StrataxError; };
28class BroadcastError : public StrataxError { public: using StrataxError::StrataxError; };
30class ZeroDivisionError : public StrataxError { public: using StrataxError::StrataxError; };
32class AxisError : public StrataxError { public: using StrataxError::StrataxError; };
34class OverflowError : public StrataxError { public: using StrataxError::StrataxError; };
36class ValueError : public StrataxError { public: using StrataxError::StrataxError; };
37
38} // namespace Exceptions
Reduction axis is outside the input rank.
Operands cannot broadcast to the requested result.
Invalid dimension or overflow in dimension, element-count, or stride arithmetic.
Index or slice cannot be used for the requested access.
Explicitly detected numeric overflow, including signed division minimum by minus one; other arithmeti...
Number of axes or supplied multidimensional indices does not match the required rank.
Shape incompatible with the requested operation or container.
Base class for Stratax errors; derives from std::runtime_error.
Unsupported type conversion or type-related operation.
Invalid argument value, such as an invalid shift count or null nonempty view.
An explicitly checked divisor is zero.