Spec-Zone.ru › Phoenix

Phoenix.MissingParamError exception

Source

Raised when a key is expected to be present in the request parameters, but is not.

This exception is raised by Phoenix.Controller.scrub_params/2 which:

  • Checks to see if the required_key is present (can be empty)
  • Changes all empty parameters to nils ("" -> nil)

If you are seeing this error, you should handle the error and surface it to the end user. It means that there is a parameter missing from the request.

Hex Package Hex Preview Download ePub version

Built using ExDoc (v0.40.3) for the Elixir programming language

© 2014 Chris McCord
Licensed under the MIT License.
https://phoenix.hexdocs.pm/Phoenix.MissingParamError.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API