.. oe:namespace:: OESystem



.. meta::
   :keywords: OEErrorHandlerImplBase, ErrorHandlerImplBase


.. _OESystem_OEErrorHandlerImplBase:

.. oe:class:: OEErrorHandlerImplBase

   .. oe:api::


      class OEErrorHandlerImplBase

   This class represents `OEErrorHandlerImplBase`.

   The :ref:`OEErrorHandlerImplBase <OESystem_OEErrorHandlerImplBase>` abstract base class
   is used to define the API that can be used to customize an
   :ref:`OEErrorHandler <OESystem_OEErrorHandler>`, typically the system error
   handler, :oe:constns:`OESystem::OEThrow`. For example, this
   class may be implemented to customize how OpenEye toolkit messages
   are handled as all OpenEye toolkits will write their messages to
   :oe:constns:`OESystem::OEThrow`. The handler used by
   :oe:constns:`OESystem::OEThrow` can be changed with the
   :oe:meth:`OESystem::OEErrorHandler::SetHandlerImpl` method.

   Implementations of this class only need to implement
   :oe:meth:`OESystem::OEErrorHandlerImplBase::Msg` and
   :oe:meth:`OESystem::OEErrorHandlerImplBase::CreateCopy`.

   .. oe:method:: Constructors

      .. oe:language:: c++ java csharp

         .. oe:api::

            OEErrorHandlerImplBase()

      .. oe:language:: python

         .. oe:api:: python

            OEErrorHandlerImplBase() -> OEErrorHandlerImplBase
            OEErrorHandlerImplBase(arg2: OEErrorHandlerImplBase) -> OEErrorHandlerImplBase

      Default and copy constructors.

   .. oe:method:: operator=
      :language: c++

      .. oe:api::

         OEErrorHandlerImplBase & operator=(const OEErrorHandlerImplBase &)

      Assignment operator.


   .. oe:method:: Clear

      .. oe:language:: c++ java csharp

         .. oe:api::

            void Clear()

      .. oe:language:: python

         .. oe:api:: python

            Clear() -> None

   .. oe:method:: Count

      .. oe:language:: c++ java csharp

         .. oe:api::

            unsigned int Count(unsigned int level = 0) const

      .. oe:language:: python

         .. oe:api:: python

            Count(level: int = 0) -> int

   .. oe:method:: CreateCopy

      .. oe:language:: c++ java csharp

         .. oe:api::

            OEErrorHandlerImplBase* CreateCopy() const = 0

      .. oe:language:: python

         .. oe:api:: python

            CreateCopy() -> OEErrorHandlerImplBase

   .. oe:method:: GetLevel

      .. oe:language:: c++ java csharp

         .. oe:api::

            unsigned int GetLevel() const

      .. oe:language:: python

         .. oe:api:: python

            GetLevel() -> int

   .. oe:method:: GetStrict

      .. oe:language:: c++ java csharp

         .. oe:api::

            bool GetStrict() const

      .. oe:language:: python

         .. oe:api:: python

            GetStrict() -> bool

   .. oe:method:: IncrementCount

      .. oe:language:: c++ java csharp

         .. oe:api::

            void IncrementCount(unsigned int level)

      .. oe:language:: python

         .. oe:api:: python

            IncrementCount(level: int) -> None

   .. oe:method:: Msg

      .. oe:language:: c++ java csharp

         .. oe:api::

            void Msg(unsigned int level, const std::string &)=0

      .. oe:language:: python

         .. oe:api:: python

            Msg(level: int, arg0: str) -> None

   .. oe:method:: SetLevel

      .. oe:language:: c++ java csharp

         .. oe:api::

            void SetLevel(unsigned int level)

      .. oe:language:: python

         .. oe:api:: python

            SetLevel(level: int) -> None

   .. oe:method:: SetStrict

      .. oe:language:: c++ java csharp

         .. oe:api::

            void SetStrict(bool strict)

      .. oe:language:: python

         .. oe:api:: python

            SetStrict(strict: bool) -> None

