|
Last change
on this file since aab470 was 71910a, checked in by Tillmann Crueger <crueger@…>, 16 years ago |
|
Made data internal data-structure of vector class private
- Replaced occurences of access to internals with operator
- moved Vector-class into LinAlg-Module
- Reworked Vector to allow clean modularization
- Added Plane class to describe arbitrary planes in 3d space
|
-
Property mode
set to
100644
|
|
File size:
649 bytes
|
| Line | |
|---|
| 1 | /*
|
|---|
| 2 | * CustomException.hpp
|
|---|
| 3 | *
|
|---|
| 4 | * Created on: Apr 7, 2010
|
|---|
| 5 | * Author: crueger
|
|---|
| 6 | */
|
|---|
| 7 |
|
|---|
| 8 | #ifndef CUSTOMEXCEPTION_HPP_
|
|---|
| 9 | #define CUSTOMEXCEPTION_HPP_
|
|---|
| 10 |
|
|---|
| 11 | #include <exception>
|
|---|
| 12 | #include <iostream>
|
|---|
| 13 |
|
|---|
| 14 | /**
|
|---|
| 15 | * Custom Exceptions are simply a bit more verbose versions of the
|
|---|
| 16 | * std::exceptions.
|
|---|
| 17 | */
|
|---|
| 18 | class CustomException : public std::exception
|
|---|
| 19 | {
|
|---|
| 20 | friend std::ostream& operator<<(std::ostream &ost, CustomException &excp);
|
|---|
| 21 | public:
|
|---|
| 22 | CustomException(std::string file, int line);
|
|---|
| 23 | virtual ~CustomException() throw();
|
|---|
| 24 |
|
|---|
| 25 | private:
|
|---|
| 26 | std::string file;
|
|---|
| 27 | int line;
|
|---|
| 28 | };
|
|---|
| 29 |
|
|---|
| 30 | std::ostream& operator<<(std::ostream &ost, CustomException &excp);
|
|---|
| 31 |
|
|---|
| 32 | #endif /* CUSTOMEXCEPTION_HPP_ */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.