Mercurial > hg > orthanc
comparison Core/OrthancException.cpp @ 59:c996319e90bc orthanc-renaming
renaming in Core
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sun, 16 Sep 2012 09:28:56 +0200 |
parents | 6da7fc87efaa |
children | fe180eae201d |
comparison
equal
deleted
inserted
replaced
58:6da7fc87efaa | 59:c996319e90bc |
---|---|
1 /** | 1 /** |
2 * Palanthir - A Lightweight, RESTful DICOM Store | 2 * Orthanc - 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 "PalanthirException.h" | 21 #include "OrthancException.h" |
22 | 22 |
23 namespace Palanthir | 23 namespace Orthanc |
24 { | 24 { |
25 const char* PalanthirException::What() const | 25 const char* OrthancException::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* PalanthirException::GetDescription(ErrorCode error) | 38 const char* OrthancException::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"; |