Ejemplo n.º 1
0
    def __init__(self,
                 error='',
                 command_stdout=None,
                 command_stderr=None,
                 command_exit_status=None,
                 **kwargs):
        """ 
        Class constructor. 

        :param error: Error message.
        :type error: str

        :param command_stdout: Command standard output.
        :type command_stdout: str

        :param command_stderr: Command standard error.
        :type command_stderr: str

        :param command_exit_status: Command exit status.
        :type command_exit_status: int

        :param kwargs: Keyword arguments, may contain 'args=error_message', 'exception=exception_object', or 'error_details=details'.
        """
        QconfException.__init__(self, error, uge_status.UGE_COMMAND_FAILED,
                                **kwargs)
        self.command_stdout = command_stdout
        self.command_stderr = command_stderr
        self.command_exit_status = command_exit_status
Ejemplo n.º 2
0
    def __init__(self, error='', **kwargs):
        """ 
        Class constructor. 

        :param error: Error message.
        :type error: str

        :param kwargs: Keyword arguments, may contain 'args=error_message', 'exception=exception_object', or 'error_details=details'.
        """
        QconfException.__init__(self, error, uge_status.UGE_INVALID_ARGUMENT,
                                **kwargs)