Skip to content
Myr

Fix a typo

Before adoption: this commit came in with the history the project adopted, so no landing records it.

`interchangable` → `interchangeable`

authored by Prayag Verma · committed by Prayag Verma · parent d5308bb · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/errorhandling.rst+1 added-1 removed
54 unmodified lines
55Those two ways are equivalent, but the first one is more clear and leaves56you with a function to call on your whim (and in tests). Note that57:exc:`werkzeug.exceptions.HTTPException` subclasses like58:exc:`~werkzeug.exceptions.BadRequest` from the example and their HTTP codes59are interchangable when handed to the registration methods or decorator59are interchangeable when handed to the registration methods or decorator60(``BadRequest.code == 400``).6162You are however not limited to a :exc:`~werkzeug.exceptions.HTTPException`63or its code but can register a handler for every exception class you like.
289 unmodified lines