mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 20:28:38 +00:00
[commands] Clarify Converter.convert exception raising
This commit is contained in:
parent
3a80636029
commit
6643784d33
@ -126,6 +126,10 @@ class Converter(Protocol[T_co]):
|
|||||||
raise a :exc:`.CommandError` derived exception as it will
|
raise a :exc:`.CommandError` derived exception as it will
|
||||||
properly propagate to the error handlers.
|
properly propagate to the error handlers.
|
||||||
|
|
||||||
|
Note that if this method is called manually, :exc:`Exception`
|
||||||
|
should be caught to handle the cases where a subclass does
|
||||||
|
not explicitly inherit from :exc:`.CommandError`.
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
-----------
|
-----------
|
||||||
ctx: :class:`.Context`
|
ctx: :class:`.Context`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user