import sys
class ConfigError(Exception):
    def __init__(self, message):
        self.message = message
        
        sys.stdout.write("\nERROR: " + str(message) + "\n\n")

class ParseError(Exception):
    def __init__(self, message):
        self.message = message
        
        sys.stdout.write("\nERROR: " + str(message) + "\n\n")


import sys
class GenericException(Exception):
    def __init__(self, message):
        self.message = message
        
        sys.stdout.write("\nERROR: " + str(message) + "\n\n")

class ConfigError(GenericException):
    pass

class ParseError(GenericException):
    pass


Make errors a bit easier to copy
Make errors a bit easier to copy

  import sys
- class ConfigError(Exception):
+ class GenericException(Exception):
      def __init__(self, message):
          self.message = message
          
          sys.stdout.write("\nERROR: " + str(message) + "\n\n")
  
+ class ConfigError(GenericException):
+     pass
+ 
- class ParseError(Exception):
+ class ParseError(GenericException):
+     pass
-     def __init__(self, message):
-         self.message = message
-         
-         sys.stdout.write("\nERROR: " + str(message) + "\n\n")
  
  
Make errors a bit easier to copy
## Code Before:
import sys
class ConfigError(Exception):
    def __init__(self, message):
        self.message = message
        
        sys.stdout.write("\nERROR: " + str(message) + "\n\n")

class ParseError(Exception):
    def __init__(self, message):
        self.message = message
        
        sys.stdout.write("\nERROR: " + str(message) + "\n\n")


## Instruction:
Make errors a bit easier to copy
## Code After:
import sys
class GenericException(Exception):
    def __init__(self, message):
        self.message = message
        
        sys.stdout.write("\nERROR: " + str(message) + "\n\n")

class ConfigError(GenericException):
    pass

class ParseError(GenericException):
    pass

