code: def croak(error, message_writer=message):
      
      if isinstance(error, MaltegoException):
          message_writer(MaltegoTransformExceptionMessage(exceptions=[error]))
      else:
          message_writer(MaltegoTransformExceptionMessage(exceptions=[MaltegoException(error)]))
docs: Throw an exception in the Maltego GUI containing error_msg.