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

Public Member Functions

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

Data Fields

 ctx
 
 cmd
 
- Data Fields inherited from ClickException
 message
 

Static Public Attributes

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

Detailed Description

An internal exception that signals a usage error.  This typically
aborts any further handling.

:param message: the error message to display.
:param ctx: optionally the context that caused this error.  Click will
            fill in the context automatically in some situations.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  message,
  ctx = None 
)

Reimplemented in BadArgumentUsage.

Member Function Documentation

◆ show()

def show (   self,
  file = None 
)

Reimplemented from ClickException.

Field Documentation

◆ cmd

cmd

◆ ctx

ctx

◆ exit_code

int exit_code = 2
static

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