wallaby v0.10.0 Wallaby.QueryError exception
Summary
Functions
Converts a condition into a human readable failure message
Generates failure conditions based on query conditions
Compose an error message based on the error type and query information
Generates an error message based on errors present in the query struct. If there are multiple errors in a query then we’ll only show the first one. Because of this errors always need to be in order from most specific to most generic. That way we always show the most specific error to the user
Extracts the expression from the locator
Callback implementation for c:Exception.message/1
Extracts the locator method from the locator and converts it into a human readable format
Converts the visibilty attribute into a human readable form
Functions
Converts a condition into a human readable failure message.
Generates failure conditions based on query conditions.
Specs
error_message(atom, %{}) :: String.t
Compose an error message based on the error type and query information
Specs
errors(Wallaby.Node.Query.t) :: String.t
Generates an error message based on errors present in the query struct. If there are multiple errors in a query then we’ll only show the first one. Because of this errors always need to be in order from most specific to most generic. That way we always show the most specific error to the user.
Extracts the expression from the locator.
Specs
message(Exception.t) :: String.t
Callback implementation for c:Exception.message/1
.
Specs
method({atom, any}) :: String.t
Extracts the locator method from the locator and converts it into a human readable format