Go to the documentation of this file.00001 #ifndef __NEW_MAT_MATRIX_EXCEPTIONS_H__
00002 #define __NEW_MAT_MATRIX_EXCEPTIONS_H__
00003
00004
00005
00007 class NPDException : public Runtime_error
00008 {
00009 public:
00010 static unsigned long Select;
00011 NPDException(const GeneralMatrix&);
00012 };
00013
00015 class ConvergenceException : public Runtime_error
00016 {
00017 public:
00018 static unsigned long Select;
00019 ConvergenceException(const GeneralMatrix& A);
00020 ConvergenceException(const char* c);
00021 };
00022
00024 class SingularException : public Runtime_error
00025 {
00026 public:
00027 static unsigned long Select;
00028 SingularException(const GeneralMatrix& A);
00029 };
00030
00032 class OverflowException : public Runtime_error
00033 {
00034 public:
00035 static unsigned long Select;
00036 OverflowException(const char* c);
00037 };
00038
00040 class ProgramException : public Logic_error
00041 {
00042 protected:
00043 ProgramException();
00044 public:
00045 static unsigned long Select;
00046 ProgramException(const char* c);
00047 ProgramException(const char* c, const GeneralMatrix&);
00048 ProgramException(const char* c, const GeneralMatrix&, const GeneralMatrix&);
00049 ProgramException(const char* c, MatrixType, MatrixType);
00050 };
00051
00053 class IndexException : public Logic_error
00054 {
00055 public:
00056 static unsigned long Select;
00057 IndexException(int i, const GeneralMatrix& A);
00058 IndexException(int i, int j, const GeneralMatrix& A);
00059
00060 IndexException(int i, const GeneralMatrix& A, bool);
00061 IndexException(int i, int j, const GeneralMatrix& A, bool);
00062 };
00063
00065 class VectorException : public Logic_error
00066 {
00067 public:
00068 static unsigned long Select;
00069 VectorException();
00070 VectorException(const GeneralMatrix& A);
00071 };
00072
00074 class NotSquareException : public Logic_error
00075 {
00076 public:
00077 static unsigned long Select;
00078 NotSquareException(const GeneralMatrix& A);
00079 NotSquareException();
00080 };
00081
00083 class SubMatrixDimensionException : public Logic_error
00084 {
00085 public:
00086 static unsigned long Select;
00087 SubMatrixDimensionException();
00088 };
00089
00091 class IncompatibleDimensionsException : public Logic_error
00092 {
00093 public:
00094 static unsigned long Select;
00095 IncompatibleDimensionsException();
00096 IncompatibleDimensionsException(const GeneralMatrix&);
00097 IncompatibleDimensionsException(const GeneralMatrix&, const GeneralMatrix&);
00098 };
00099
00101 class NotDefinedException : public Logic_error
00102 {
00103 public:
00104 static unsigned long Select;
00105 NotDefinedException(const char* op, const char* matrix);
00106 };
00107
00109 class CannotBuildException : public Logic_error
00110 {
00111 public:
00112 static unsigned long Select;
00113 CannotBuildException(const char* matrix);
00114 };
00115
00116
00118 class InternalException : public Logic_error
00119 {
00120 public:
00121 static unsigned long Select;
00122 InternalException(const char* c);
00123 };
00124
00125 #endif
00126