Mercurial > hg > orthanc
comparison Core/PalanthirException.cpp @ 50:a15e90e5d6fc
rename in code
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 05 Sep 2012 15:50:12 +0200 |
parents | 491a97842e31 |
children |
comparison
equal
deleted
inserted
replaced
49:e1a3ae0dadf3 | 50:a15e90e5d6fc |
---|---|
1 /** | 1 /** |
2 * Palantir - A Lightweight, RESTful DICOM Store | 2 * Palanthir - A Lightweight, RESTful DICOM Store |
3 * Copyright (C) 2012 Medical Physics Department, CHU of Liege, | 3 * Copyright (C) 2012 Medical Physics Department, CHU of Liege, |
4 * Belgium | 4 * Belgium |
5 * | 5 * |
6 * This program is free software: you can redistribute it and/or | 6 * This program is free software: you can redistribute it and/or |
7 * modify it under the terms of the GNU General Public License as | 7 * modify it under the terms of the GNU General Public License as |
16 * You should have received a copy of the GNU General Public License | 16 * You should have received a copy of the GNU General Public License |
17 * along with this program. If not, see <http://www.gnu.org/licenses/>. | 17 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
18 **/ | 18 **/ |
19 | 19 |
20 | 20 |
21 #include "PalantirException.h" | 21 #include "PalanthirException.h" |
22 | 22 |
23 namespace Palantir | 23 namespace Palanthir |
24 { | 24 { |
25 const char* PalantirException::What() const | 25 const char* PalanthirException::What() const |
26 { | 26 { |
27 if (error_ == ErrorCode_Custom) | 27 if (error_ == ErrorCode_Custom) |
28 { | 28 { |
29 return custom_.c_str(); | 29 return custom_.c_str(); |
30 } | 30 } |
33 return GetDescription(error_); | 33 return GetDescription(error_); |
34 } | 34 } |
35 } | 35 } |
36 | 36 |
37 | 37 |
38 const char* PalantirException::GetDescription(ErrorCode error) | 38 const char* PalanthirException::GetDescription(ErrorCode error) |
39 { | 39 { |
40 switch (error) | 40 switch (error) |
41 { | 41 { |
42 case ErrorCode_Success: | 42 case ErrorCode_Success: |
43 return "Success"; | 43 return "Success"; |