Skip to main content

HostRequestError

Raised by Page.request_host when the host app doesn't answer a request with a result.

Inherits: FletException

Properties

  • kind - What went wrong:
  • message - A message from the host app, or about the failure.

Properties​

kindinstance-attribute​

What went wrong:

  • "not_embedded": the app isn't embedded in another app;
  • "unhandled": the host has no handler for this request, or the embedded app disconnected before it received the answer;
  • "refused": the host app declined the request, for example because its user said no (it raised HostRequestRefused);
  • "failed": the host app failed to answer it, or the request was too large or one of too many;
  • "timeout": the host app didn't answer in time.

messageinstance-attribute​

A message from the host app, or about the failure. Never the host's traceback.