class_docstr: A generic Error class derived from Exception.
  
  Essentially, it gets a class object and a message, and logs the error to the logger.
class_docstr_tok: ["A","generic","Error","class","derived","from","Exception",".","Essentially",",","it","gets","a","class","object","and","a","message",",","and","logs","the","error","to","the","logger","."]
docstr: Initialization method.
  
  Args:
      cls: Class identifier.
      msg: Message to be logged.
docstr_tok: ["Initialization","method",".","Args",":","cls",":","Class","identifier",".","msg",":","Message","to","be","logged","."]
code: def __init__(self, cls: str, msg: str) -> None:
      """Initialization method.
  
      Args:
          cls: Class identifier.
          msg: Message to be logged.
  
      """
  
      super(Error, self).__init__()
  
      logger.error("%s: %s.", cls, msg)
  
file_path: opytimizer/opytimizer/utils/exception.py
imports: from opytimizer.utils import logging
label_desc: Use image node_id 1 to create a new Error object from inherited base classes: Exception with example: obj = Error(cls, msg)