Module perseus::error_views

source ·
Expand description

Utilities surrounding ErrorViews and their management.

Structs

  • The error handling system of an app. In Perseus, errors come in several forms, all of which must be handled. This system provides a way to do this automatically, maximizing your app’s error tolerance, including against panics.
  • The information to render an error on the server-side, which is usually associated with an explicit HTTP status code.

Enums

  • The context of an error, which determines what is available to your views. This must be checked before using things like translators, which may not be available, depending on the information in here.
  • Where an error is being rendered. Most of the time, you’ll use this for determining how you want to style an error view. For instance, you probably don’t want giant text saying “Page not found!” if the error is actually going to be rendered inside a tiny little widget.