code: def perror(self, err: Union[str, Exception], traceback_war: bool = True, err_color: str = Fore.LIGHTRED_EX,
                 war_color: str = Fore.LIGHTYELLOW_EX) -> None:
          
          if self.debug and sys.exc_info() != (None, None, None):
              import traceback
              traceback.print_exc()
  
          if isinstance(err, Exception):
              err_msg = "EXCEPTION of type '{}' occurred with message: '{}'\n".format(type(err).__name__, err)
          else:
              err_msg = "{}\n".format(err)
          err_msg = err_color + err_msg + Fore.RESET
          self.decolorized_write(sys.stderr, err_msg)
  
          if traceback_war and not self.debug:
              war = "To enable full traceback, run the following command:  'set debug true'\n"
              war = war_color + war + Fore.RESET
              self.decolorized_write(sys.stderr, war)
docs: Print error message to sys.stderr and if debug is true, print an exception Traceback if one exists.
  
          :param err: an Exception or error message to print out
          :param traceback_war: (optional) if True, print a message to let user know they can enable debug
          :param err_color: (optional) color escape to output error with
          :param war_color: (optional) color escape to output warning with