-
Notifications
You must be signed in to change notification settings - Fork 1
/
exception.h
34 lines (29 loc) · 705 Bytes
/
exception.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#pragma once
#include <exception>
#include <string>
#include "stdafx.h"
class MatrixException :public std::exception {
public:
MatrixException();
MatrixException(const std::string&);
const std::string& getMessage();
protected:
std::string message;
};
class outOfRangeExcep : public MatrixException {
public:
outOfRangeExcep();
outOfRangeExcep(const std::string&);
};
class dimenDismatchExcep :public MatrixException {
public:
dimenDismatchExcep();
dimenDismatchExcep(const std::string&);
dimenDismatchExcep(int, int, int, int);
void setMessage(int, int, int, int);
};
class invalidParamExcep :public MatrixException {
public:
invalidParamExcep();
invalidParamExcep(const std::string&);
};