27 #ifndef CLASSES_EXCEPTION1_H_ 28 #define CLASSES_EXCEPTION1_H_ 86 virtual const char*
what() const noexcept
override 107 return "qpp::exception::Exception";
122 return "UNKNOWN EXCEPTION";
139 return "Object has zero size";
156 return "Matrix is not square";
173 return "Matrix is not a column vector";
190 return "Matrix is not a row vector";
207 return "Matrix is not a vector";
224 return "Matrix is not square nor column vector";
241 return "Matrix is not square nor row vector";
258 return "Matrix is not square nor vector";
275 return "Matrix mismatch subsystems";
292 return "Invalid dimension(s)";
309 return "Dimensions not equal";
327 return "Dimension(s) mismatch matrix size";
345 return "Dimension(s) mismatch column vector size";
363 return "Dimension(s) mismatch row vector size";
382 return "Dimension(s) mismatch vector size";
400 return "Subsystems mismatch dimensions";
417 return "Invalid permutation";
435 return "Permutation mismatch dimensions";
452 return "Matrix is not 2 x 2";
469 return "Column vector is not 2 x 1";
486 return "Row vector is not 1 x 2";
503 return "Vector is not 2 x 1 nor 1 x 2";
520 return "Subsystems are not qubits";
537 return "Not bi-partite";
555 return "Codeword does not exist";
572 return "Parameter out of range";
590 return "Type mismatch";
607 return "Size mismatch";
624 return "Not defined for this type";
642 return "CUSTOM EXCEPTION " + what_;
Dimensions not equal exception.
Definition: exception.h:304
Dimension(s) mismatch matrix size exception.
Definition: exception.h:322
std::string type_description() const override
Exception type description.
Definition: exception.h:137
Matrix is not a vector exception.
Definition: exception.h:202
Matrix is not square nor vector exception.
Definition: exception.h:253
Not defined for this type exception.
Definition: exception.h:619
Custom exception.
Definition: exception.h:636
std::string type_description() const override
Exception type description.
Definition: exception.h:484
std::string type_description() const override
Exception type description.
Definition: exception.h:343
std::string type_description() const override
Exception type description.
Definition: exception.h:553
std::string type_description() const override
Exception type description.
Definition: exception.h:570
Subsystems mismatch dimensions exception.
Definition: exception.h:395
std::string type_description() const override
Exception type description.
Definition: exception.h:605
std::string type_description() const override
Exception type description.
Definition: exception.h:188
Matrix is not a column vector exception.
Definition: exception.h:168
Quantum++ main namespace.
Definition: codes.h:30
std::string type_description() const override
Exception type description.
Definition: exception.h:398
std::string type_description() const override
Exception type description.
Definition: exception.h:205
std::string where_
Definition: exception.h:71
Matrix is not square nor column vector exception.
Definition: exception.h:219
std::string type_description() const override
Exception type description.
Definition: exception.h:222
Invalid dimension(s) exception.
Definition: exception.h:287
Subsystems are not qubits exception.
Definition: exception.h:515
Not bi-partite exception.
Definition: exception.h:532
Dimension(s) mismatch row vector size exception.
Definition: exception.h:358
std::string type_description() const override
Exception type description.
Definition: exception.h:622
Column vector is not 2 x 1 exception.
Definition: exception.h:464
std::string type_description() const override
Exception type description.
Definition: exception.h:535
Invalid permutation exception.
Definition: exception.h:412
std::string type_description() const override
Exception type description.
Definition: exception.h:307
Exception(const std::string &where)
Constructs an exception.
Definition: exception.h:78
Matrix mismatch subsystems exception.
Definition: exception.h:270
Codeword does not exist exception.
Definition: exception.h:550
Vector is not 2 x 1 nor 1 x 2 exception.
Definition: exception.h:498
std::string type_description() const override
Exception type description.
Definition: exception.h:256
std::string type_description() const override
Exception type description.
Definition: exception.h:501
std::string type_description() const override
Exception type description.
Definition: exception.h:273
std::string type_description() const override
Exception type description.
Definition: exception.h:361
Dimension(s) mismatch column vector size exception.
Definition: exception.h:340
std::string type_description() const override
Exception type description.
Definition: exception.h:518
std::string type_description() const override
Exception type description.
Definition: exception.h:467
Type mismatch exception.
Definition: exception.h:585
std::string type_description() const override
Exception type description.
Definition: exception.h:120
std::string type_description() const override
Exception type description.
Definition: exception.h:450
Matrix is not a row vector exception.
Definition: exception.h:185
Row vector is not 1 x 2 exception.
Definition: exception.h:481
Parameter out of range exception.
Definition: exception.h:567
std::string type_description() const override
Exception type description.
Definition: exception.h:239
CustomException(const std::string &where, const std::string &what)
Definition: exception.h:646
Matrix is not 2 x 2 exception.
Definition: exception.h:447
std::string type_description() const override
Exception type description.
Definition: exception.h:380
Unknown exception.
Definition: exception.h:117
std::string type_description() const override
Exception type description.
Definition: exception.h:588
std::string type_description() const override
Exception type description.
Definition: exception.h:290
Dimension(s) mismatch vector size exception.
Definition: exception.h:377
std::string type_description() const override
Exception type description.
Definition: exception.h:325
Permutation mismatch dimensions exception.
Definition: exception.h:430
virtual const char * what() const noexcept override
Overrides std::exception::what()
Definition: exception.h:86
Size mismatch exception.
Definition: exception.h:602
std::string type_description() const override
Exception type description.
Definition: exception.h:640
Matrix is not square exception.
Definition: exception.h:151
std::string type_description() const override
Exception type description.
Definition: exception.h:171
std::string type_description() const override
Exception type description.
Definition: exception.h:154
std::string type_description() const override
Exception type description.
Definition: exception.h:415
Base class for generating Quantum++ custom exceptions.
Definition: exception.h:68
Matrix is not square nor row vector exception.
Definition: exception.h:236
std::string type_description() const override
Exception type description.
Definition: exception.h:433
virtual std::string type_description() const =0
Exception type description.
Definition: exception.h:105
Object has zero size exception.
Definition: exception.h:134