.. oe:namespace:: OESystem


.. oe:constnamespace:: OEThrow

   This is the globally available error handler that is used to
   report all diagnostics generated by the *OEChem*, *OESystem* and *OEPlatform* libraries. The behavior of :oe:constns:`OESystem::OEThrow`
   may be customized via the various methods available to
   :ref:`OEErrorHandler <OESystem_OEErrorHandler>`. For example, warning and error
   messages may be redirected to a file or string stream, instead of to
   :oe:const:`OEPlatform::OEPlatform::oeerr` (the default).

   **Example**

   .. oe:source:: OEThrowFile.py
      :language: python
      :noindent:
      :frag:     SNIPPET-OEThrowFile

   .. oe:source:: OEThrowFile.cpp
      :language: c++
      :noindent:
      :frag:     SNIPPET-OEThrowFile

   .. oe:source:: OEThrowFile.java
      :language: java
      :noindent:
      :frag:     SNIPPET-OEThrowFile

   .. oe:source:: OEThrowFile.cs
      :language: cs
      :noindent:
      :frag:     SNIPPET-OEThrowFile


