<commit_before>#ifndef LCIO_EXCEPTION_H
#define LCIO_EXCEPTION_H 1

#include <string>
#include <exception> 

// define some exceptions similar to the ones used in hep.lcd.io
// the exceptions should be part of the corresponding namespace
// even though they are not defined in the package (subdirectory)
// as these hold interfaces (abstract base classes) only ....
// hmmmm - does this make sence ?

namespace EVENT {

  /**Base exception class for LCIO - all other exceptions extend this.
   * @author gaede
   * @version Apr 30, 2003
   */

  class Exception : public std::exception {

    
  protected:
    std::string message ;
    
    Exception(){  /*no_op*/ ; } 
    
  public: 
    virtual ~Exception() throw() { /*no_op*/; } 
    
    Exception( const std::string& text ){
      message = "lcio::Exception: " + text ;
    }

    virtual const char* what() const  throw() { return  message.c_str() ; } <commit_msg> - add #include <stdexcept><commit_after>#ifndef LCIO_EXCEPTION_H
#define LCIO_EXCEPTION_H 1

#include <string>
#include <exception> 
#include <stdexcept>

// define some exceptions similar to the ones used in hep.lcd.io
// the exceptions should be part of the corresponding namespace
// even though they are not defined in the package (subdirectory)
// as these hold interfaces (abstract base classes) only ....
// hmmmm - does this make sence ?

namespace EVENT {

  /**Base exception class for LCIO - all other exceptions extend this.
   * @author gaede
   * @version Apr 30, 2003
   */

  class Exception : public std::exception {

    
  protected:
    std::string message ;
    
    Exception(){  /*no_op*/ ; } 
    
  public: 
    virtual ~Exception() throw() { /*no_op*/; } 
    
    Exception( const std::string& text ){
      message = "lcio::Exception: " + text ;
    }

    virtual const char* what() const  throw() { return  message.c_str() ; } 
{'fraction_non_alphanumeric': 0.11217437533227007, 'fraction_numerical': 0.007442849548112706, 'mean_word_length': 2.953781512605042, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5873222', 'n_tokens_mistral': 587, 'n_tokens_neox': 539, 'n_words': 201}