Stratax
Scientific computing containers and operations
Loading...
Searching...
No Matches
Exceptions.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <stdexcept>
4
5namespace Exceptions {
6
8 class StrataxError : public std::runtime_error
9 {
10 public:
11 using std::runtime_error::runtime_error;
12 };
13
15 class ShapeError : public StrataxError
16 {
17 public:
18 using StrataxError::StrataxError;
19 };
20
23 {
24 public:
25 using StrataxError::StrataxError;
26 };
27
29 class IndexError : public StrataxError
30 {
31 public:
32 using StrataxError::StrataxError;
33 };
34
36 class TypeError : public StrataxError
37 {
38 public:
39 using StrataxError::StrataxError;
40 };
41
44 {
45 public:
46 using StrataxError::StrataxError;
47 };
48
51 {
52 public:
53 using StrataxError::StrataxError;
54 };
55}
Signals that an operation cannot be completed with the current broadcast rules.
Signals an invalid dimension count or dimension arithmetic failure.
Signals an invalid index access.
Signals an invalid or incompatible shape.
Base class for Stratax-specific runtime errors.
Definition Exceptions.hpp:9
Signals an invalid or unsupported type.
Signals a division by zero.