Exceptions

exception eynnyd.exceptions.EynnydWebappBuildException[source]

Raised if there is a problem with the configured webapp when it attempts to build.

exception eynnyd.exceptions.ErrorHandlingBuilderException[source]

Raised when there is a problem with adding an error handler.

exception eynnyd.exceptions.NoGenericErrorHandlerException[source]

Raised when attempting to handle an exception and there are no configured handlers (even the base Exception). This should not happen.

exception eynnyd.exceptions.HandlerNotFoundException[source]

This is raised when a handler is not found for a request. Note that this is caught and rethrown as a more generic RouteNotFoundException which is what is used for retuning 404 responses.

exception eynnyd.exceptions.DuplicateHandlerRoutesException[source]

Raised when trying to add a handler to the routes which is already registered for that method/path pair. Note this is caught and rethrown as a more generic RouteBuildException.

exception eynnyd.exceptions.RouteNotFoundException[source]

Raised when no route could be found for a request. Indicates a 404.

exception eynnyd.exceptions.RouteBuildException[source]

Raised when there is a problem with route building.

exception eynnyd.exceptions.InvalidHTTPStatusException[source]

Raised when the status given to a response cannot be translated into a recognizable format.

exception eynnyd.exceptions.SettingNonTypedStatusWithContentTypeException[source]

Raised when a response has a content type but trying to set a non content type status.

exception eynnyd.exceptions.SettingContentTypeWithNonTypedStatusException[source]

Raised when a response has a non content type status but trying to set a content-type.

exception eynnyd.exceptions.SettingBodyWithNonBodyStatusException[source]

Raised when a response has a non body type status but trying to set a body.

exception eynnyd.exceptions.SettingNonBodyStatusWithBodyException[source]

Raised when a response has a body but trying to set a non body status.

exception eynnyd.exceptions.InvalidURIException[source]

Raised when a uri (for example the path given to a route) is badly formatted.

exception eynnyd.exceptions.InvalidCookieBuildException[source]

Raised when attempting to build a cookie with bad values.

exception eynnyd.exceptions.InvalidCookieHeaderException[source]

Raised when a request cookie is not rfc compliant (Ideally, should not happen).

exception eynnyd.exceptions.InvalidHeaderException[source]

Raised when a response header uses invalid characters.

exception eynnyd.exceptions.InvalidBodyTypeException[source]

Raised when a body being set on a response is invalid (ex. setting a utf-8 body using the set_byte_body method).

exception eynnyd.exceptions.UnknownResponseBodyTypeException[source]

Raised when a body is set on the response with an unknown type (should not happen).

exception eynnyd.exceptions.RequestInterceptorReturnedNonRequestException[source]

Raised when a request interceptor does not return a valid request object.

exception eynnyd.exceptions.HandlerReturnedNonResponseException[source]

Raised when a handler does not return a valid response object.

exception eynnyd.exceptions.ResponseInterceptorReturnedNonResponseException[source]

Raised when a response interceptor does not return a valid response object.

exception eynnyd.exceptions.NonCallableInterceptor[source]

Raised when a interceptor is registered without being a callable.

exception eynnyd.exceptions.NonCallableHandler[source]

Raised when a handler is registered without being a callable.

exception eynnyd.exceptions.CallbackIncorrectNumberOfParametersException[source]

Raised when a callback doesn’t match the correct number of parameters.

exception eynnyd.exceptions.NonCallableExceptionHandlerException[source]

Raised when an exception handler is registered but is not a callable.

exception eynnyd.exceptions.InvalidResponseCookieException[source]

Raised when a response cookie is of a non rfc compliant format.

exception eynnyd.exceptions.ExecutionPlanBuildException[source]

Raised when an execution plan is finished but cannot build. (should not happen)