Last change
on this file since 25a549 was 71910a, checked in by Tillmann Crueger <crueger@…>, 15 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:
496 bytes
|
Line | |
---|
1 | /*
|
---|
2 | * CustomException.cpp
|
---|
3 | *
|
---|
4 | * Created on: Apr 7, 2010
|
---|
5 | * Author: crueger
|
---|
6 | */
|
---|
7 |
|
---|
8 | #include "CustomException.hpp"
|
---|
9 |
|
---|
10 | using namespace std;
|
---|
11 |
|
---|
12 | CustomException::CustomException(std::string _file, int _line):
|
---|
13 | file(_file),
|
---|
14 | line(_line)
|
---|
15 | {}
|
---|
16 |
|
---|
17 | CustomException::~CustomException() throw ()
|
---|
18 | {}
|
---|
19 |
|
---|
20 |
|
---|
21 | ostream& operator<<(ostream &ost,CustomException &excp){
|
---|
22 | // we use this to let others know from where the exception was thrown
|
---|
23 | ost << excp.what() << "\nIn " << excp.file << ":" << excp.line;
|
---|
24 | return ost;
|
---|
25 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.