Mercurial > hg > orthanc-stone
comparison Framework/Oracle/OracleCommandExceptionMessage.h @ 1135:a0a33e5ea5bb broker
IOracleCommand::Clone()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 06 Nov 2019 17:34:58 +0100 |
parents | 87fbeb823375 |
children | 0ca50d275b9a |
comparison
equal
deleted
inserted
replaced
1134:87fbeb823375 | 1135:a0a33e5ea5bb |
---|---|
26 | 26 |
27 #include <Core/OrthancException.h> | 27 #include <Core/OrthancException.h> |
28 | 28 |
29 namespace OrthancStone | 29 namespace OrthancStone |
30 { | 30 { |
31 class OracleCommandExceptionMessage : public IOracleCommand::OracleMessageBase | 31 class OracleCommandExceptionMessage : public OriginMessage<IOracleCommand> |
32 { | 32 { |
33 ORTHANC_STONE_MESSAGE(__FILE__, __LINE__); | 33 ORTHANC_STONE_MESSAGE(__FILE__, __LINE__); |
34 | 34 |
35 private: | 35 private: |
36 Orthanc::OrthancException exception_; | 36 Orthanc::OrthancException exception_; |
37 | 37 |
38 public: | 38 public: |
39 OracleCommandExceptionMessage(IOracleCommand& command, | 39 OracleCommandExceptionMessage(const IOracleCommand& command, |
40 const Orthanc::ErrorCode& error) : | 40 const Orthanc::ErrorCode& error) : |
41 OracleMessageBase(command), | 41 OriginMessage(command), |
42 exception_(error) | 42 exception_(error) |
43 { | |
44 } | |
45 | |
46 OracleCommandExceptionMessage(const IOracleCommand& command, | |
47 const Orthanc::OrthancException& exception) : | |
48 OriginMessage(command), | |
49 exception_(exception) | |
43 { | 50 { |
44 } | 51 } |
45 | 52 |
46 const Orthanc::OrthancException& GetException() const | 53 const Orthanc::OrthancException& GetException() const |
47 { | 54 { |