Flask-RESTful Documentation Release 0.3.10
Values & Lists Other Destinations Argument Locations Multiple Locations Parser Inheritance Error Handling Error Messages Output Fields Basic Usage Renaming Attributes Default Values Custom Fields & Multiple Flask-RESTful Content Negotiation Custom Fields & Inputs Response Formats Resource Method Decorators Custom Error Handlers Intermediate Usage Project Structure Use With Blueprints Full Parameter Parsing Example documentation is for you. API Docs Api ReqParse Fields Inputs Additional Notes See Flask’s license [http://flask.pocoo.org/docs/license/] for legal information governing this project. Running the Tests0 码力 | 42 页 | 84.60 KB | 1 年前3Click Documentation Release 4.2.dev0
are and can give the user consistent error messages if some- thing goes wrong. A subcommand written by a different developer will not suddenly die with a different error messsage because it’s manually handled Click Documentation, Release 4.2.dev0 What this means is that the echo() function applies some error correction in case the terminal is misconfigured instead of dying with an UnicodeError. As an added What it looks like: $ digest --hash-type=md5 md5 $ digest --hash-type=foo Usage: digest [OPTIONS] Error: Invalid value for "--hash-type": invalid choice: foo. (choose from md5, sha1) $ digest --help Usage:0 码力 | 101 页 | 407.32 KB | 1 年前3PlantUML 1.2020.22 Guide de référence du langage
stop on an action [kill, detach] You can stop action on a if loop. @startuml if (condition?) then :error; Guide de référence du langage PlantUML (1.2020.22) 75 / 294 5.4 Conditional with stop on an action kill @startuml if (condition?) then #pink:error; kill endif #palegreen:action; @enduml [Ref. QA-265] • detach @startuml if (condition?) then #pink:error; detach endif #palegreen:action; @enduml Guide repeat :Test something; if (Something went wrong?) then (no) #palegreen:OK; break endif ->NOK; :Alert "Error with long text"; repeat while (Something went wrong with long text?) is (yes) ->no; :Alert "Sucess";0 码力 | 295 页 | 3.03 MB | 1 年前3PlantUML 1.2020.23 Guide de référence du langage
stop on an action [kill, detach] You can stop action on a if loop. @startuml if (condition?) then :error; Guide de référence du langage PlantUML (1.2020.23) 87 / 307 5.4 Conditional with stop on an action kill @startuml if (condition?) then #pink:error; kill endif #palegreen:action; @enduml [Ref. QA-265] • detach @startuml if (condition?) then #pink:error; detach endif #palegreen:action; @enduml Guide repeat :Test something; if (Something went wrong?) then (no) #palegreen:OK; break endif ->NOK; :Alert "Error with long text"; repeat while (Something went wrong with long text?) is (yes) ->no; :Alert "Sucess";0 码力 | 308 页 | 3.12 MB | 1 年前3PlantUML 1.2023.11 Guide de référence du langage
[kill, detach] Vous pouvez arrêter le processus après une action. @startuml if (condition?) then :error; stop endif #palegreen:action; @enduml Vous pouvez également utiliser les mots clé kill ou detach mettre fin au processus directement dans une action. • kill @startuml if (condition?) then #pink:error; kill endif #palegreen:action; @enduml [Ref. QA-265] Guide de référence du langage PlantUML (1.2023 backward] 6 DIAGRAMME D’ACTIVITÉ (NOUVELLE SYNTAXE) • detach @startuml if (condition?) then #pink:error; detach endif #palegreen:action; @enduml 6.6 Boucle de répétition [repeat, repeatwhile, backward]0 码力 | 534 页 | 7.56 MB | 1 年前3PlantUML 1.2019.6 Guide de référence du langage
droites(--), et de flèches (-->). @startuml DataAccess - [First Component] [First Component] ..> HTTP : use @enduml 6.4 Mettre des notes Vous pouvez utiliser les commandes suivantes : note left of @startuml interface "Data Access" as DA DA - [First Component] [First Component] ..> HTTP : use note left of HTTP : Web Service only note right of [First Component] A note can also be on several lines COMPOSANTS • package • node • folder • frame • cloud • database @startuml package "Some Group" { HTTP - [First Component] [Another Component] } node "Other Groups" { FTP - [Second Component] [First Component]0 码力 | 174 页 | 1.91 MB | 1 年前3PlantUML 1.2019.9 Guide de référence du langage
droites(--), et de flèches (-->). @startuml DataAccess - [First Component] [First Component] ..> HTTP : use @enduml 6.4 Mettre des notes Vous pouvez utiliser les commandes suivantes : note left of @startuml interface "Data Access" as DA DA - [First Component] [First Component] ..> HTTP : use note left of HTTP : Web Service only note right of [First Component] A note can also be on several lines COMPOSANTS • package • node • folder • frame • cloud • database @startuml package "Some Group" { HTTP - [First Component] [Another Component] } node "Other Groups" { FTP - [Second Component] [First Component]0 码力 | 174 页 | 1.93 MB | 1 年前3PlantUML 1.2021.1 Guide de référence du langage
[kill, detach] Vous pouvez arrêter le processus après une action. @startuml if (condition?) then :error; Guide de référence du langage PlantUML (1.2021.1) 98 / 384 6.4 Arrêt après une action au sein d’une kill @startuml if (condition?) then #pink:error; kill endif #palegreen:action; @enduml [Ref. QA-265] • detach @startuml if (condition?) then #pink:error; detach endif #palegreen:action; @enduml Guide repeat :Test something; if (Something went wrong?) then (no) #palegreen:OK; break endif ->NOK; :Alert "Error with long text"; repeat while (Something went wrong with long text?) is (yes) ->no; :Alert "Sucess";0 码力 | 385 页 | 4.05 MB | 1 年前3PlantUML 1.2021.2 Guide de référence du langage
[kill, detach] Vous pouvez arrêter le processus après une action. @startuml if (condition?) then :error; Guide de référence du langage PlantUML (1.2021.2) 98 / 390 6.4 Arrêt après une action au sein d’une kill @startuml if (condition?) then #pink:error; kill endif #palegreen:action; @enduml [Ref. QA-265] • detach @startuml if (condition?) then #pink:error; detach endif #palegreen:action; @enduml Guide repeat :Test something; if (Something went wrong?) then (no) #palegreen:OK; break endif ->NOK; :Alert "Error with long text"; repeat while (Something went wrong with long text?) is (yes) not (no) ->//merged0 码力 | 391 页 | 4.10 MB | 1 年前3PlantUML 1.2021.3 Guide de référence du langage
[kill, detach] Vous pouvez arrêter le processus après une action. @startuml if (condition?) then :error; Guide de référence du langage PlantUML (1.2021.2) 99 / 405 6.4 Arrêt après une action au sein d’une kill @startuml if (condition?) then #pink:error; kill endif #palegreen:action; @enduml [Ref. QA-265] • detach @startuml if (condition?) then #pink:error; detach endif #palegreen:action; @enduml Guide repeat :Test something; if (Something went wrong?) then (no) #palegreen:OK; break endif ->NOK; :Alert "Error with long text"; repeat while (Something went wrong with long text?) is (yes) not (no) ->//merged0 码力 | 406 页 | 4.24 MB | 1 年前3
共 21 条
- 1
- 2
- 3