Phoenix v1.3.0 Phoenix.MissingParamError exception View 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.
Link to this section Summary
Functions
Callback implementation for Exception.exception/1
Callback implementation for Exception.message/1
Link to this section Functions
Link to this function
exception(msg)
View Source
exception(Keyword.t()) :: Exception.t()
exception(String.t()) :: Exception.t()
Callback implementation for Exception.exception/1
.
Callback implementation for Exception.message/1
.