OpenQuizz
Une application de gestion des contenus pédagogiques
MissingParameter Class Reference
Inheritance diagram for MissingParameter:
Collaboration diagram for MissingParameter:

Public Member Functions

def __init__ (self, message=None, ctx=None, param=None, param_hint=None, param_type=None)
 
def format_message (self)
 
def __str__ (self)
 
def __str__ (self)
 
- Public Member Functions inherited from BadParameter
def __init__ (self, message, ctx=None, param=None, param_hint=None)
 
- Public Member Functions inherited from UsageError
def __init__ (self, message, ctx=None)
 
def show (self, file=None)
 
- Public Member Functions inherited from ClickException
def __init__ (self, message)
 

Data Fields

 param_type
 
- Data Fields inherited from BadParameter
 param
 
 param_hint
 
- Data Fields inherited from UsageError
 ctx
 
 cmd
 
- Data Fields inherited from ClickException
 message
 

Additional Inherited Members

- Static Public Attributes inherited from UsageError
int exit_code = 2
 
- Static Public Attributes inherited from ClickException
int exit_code = 1
 

Detailed Description

Raised if click required an option or argument but it was not
provided when invoking the script.

.. versionadded:: 4.0

:param param_type: a string that indicates the type of the parameter.
                   The default is to inherit the parameter type from
                   the given `param`.  Valid values are ``'parameter'``,
                   ``'option'`` or ``'argument'``.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  message = None,
  ctx = None,
  param = None,
  param_hint = None,
  param_type = None 
)

Member Function Documentation

◆ __str__() [1/2]

def __str__ (   self)

Reimplemented from ClickException.

◆ __str__() [2/2]

def __str__ (   self)

Reimplemented from ClickException.

◆ format_message()

def format_message (   self)

Reimplemented from BadParameter.

Field Documentation

◆ param_type

param_type

The documentation for this class was generated from the following file: