diff 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
line wrap: on
line diff
--- a/Framework/Oracle/OracleCommandExceptionMessage.h	Tue Nov 05 19:01:57 2019 +0100
+++ b/Framework/Oracle/OracleCommandExceptionMessage.h	Tue Nov 05 22:39:25 2019 +0100
@@ -28,34 +28,28 @@
 
 namespace OrthancStone
 {
-  class OracleCommandExceptionMessage : public IMessage
+  class OracleCommandExceptionMessage : public IOracleCommand::OracleMessageBase
   {
     ORTHANC_STONE_MESSAGE(__FILE__, __LINE__);
 
   private:
-    const IOracleCommand&       command_;
-    Orthanc::OrthancException   exception_;
+    Orthanc::OrthancException  exception_;
 
   public:
-    OracleCommandExceptionMessage(const IOracleCommand& command,
+    OracleCommandExceptionMessage(IOracleCommand& command,
                                   const Orthanc::OrthancException& exception) :
-      command_(command),
+      OracleMessageBase(command),
       exception_(exception)
     {
     }
 
-    OracleCommandExceptionMessage(const IOracleCommand& command,
+    OracleCommandExceptionMessage(IOracleCommand& command,
                                   const Orthanc::ErrorCode& error) :
-      command_(command),
+      OracleMessageBase(command),
       exception_(error)
     {
     }
 
-    const IOracleCommand& GetCommand() const
-    {
-      return command_;
-    }
-    
     const Orthanc::OrthancException& GetException() const
     {
       return exception_;