Exceptions
The Bit Logic library uses exceptions to handle any errors at runtime. The errors that can be thrown are :
| std::logic_error |
- Backwards ordering of range selction
- Assign function destroyed object without taking any arguments
- Applying functions like count to empty Bit Containers
|
| std::underflow_error |
Negative value unable to be accuretely represented using range of bits selected |
| std::overflow_error |
Positive value unable to be accuretely represented using range of bits selected |
| bit_logic::bit_out_of_bounds |
Index exceeds boundaries of container |
| std::runtime_error |
Assignment of different sized containers to a fixed size container |