Mercurial > hg > orthanc-stone
comparison Framework/Oracle/OracleCommandExceptionMessage.h @ 1128:8e3763d1736a broker
removing CustomOracleCommand
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 05 Nov 2019 22:39:25 +0100 |
parents | c44c1d2d3598 |
children | 87fbeb823375 |
comparison
equal
deleted
inserted
replaced
1127:3308ef083297 | 1128:8e3763d1736a |
---|---|
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 IMessage | 31 class OracleCommandExceptionMessage : public IOracleCommand::OracleMessageBase |
32 { | 32 { |
33 ORTHANC_STONE_MESSAGE(__FILE__, __LINE__); | 33 ORTHANC_STONE_MESSAGE(__FILE__, __LINE__); |
34 | 34 |
35 private: | 35 private: |
36 const IOracleCommand& command_; | 36 Orthanc::OrthancException exception_; |
37 Orthanc::OrthancException exception_; | |
38 | 37 |
39 public: | 38 public: |
40 OracleCommandExceptionMessage(const IOracleCommand& command, | 39 OracleCommandExceptionMessage(IOracleCommand& command, |
41 const Orthanc::OrthancException& exception) : | 40 const Orthanc::OrthancException& exception) : |
42 command_(command), | 41 OracleMessageBase(command), |
43 exception_(exception) | 42 exception_(exception) |
44 { | 43 { |
45 } | 44 } |
46 | 45 |
47 OracleCommandExceptionMessage(const IOracleCommand& command, | 46 OracleCommandExceptionMessage(IOracleCommand& command, |
48 const Orthanc::ErrorCode& error) : | 47 const Orthanc::ErrorCode& error) : |
49 command_(command), | 48 OracleMessageBase(command), |
50 exception_(error) | 49 exception_(error) |
51 { | 50 { |
52 } | 51 } |
53 | 52 |
54 const IOracleCommand& GetCommand() const | |
55 { | |
56 return command_; | |
57 } | |
58 | |
59 const Orthanc::OrthancException& GetException() const | 53 const Orthanc::OrthancException& GetException() const |
60 { | 54 { |
61 return exception_; | 55 return exception_; |
62 } | 56 } |
63 }; | 57 }; |