WebView.Errors (webview_elixir v0.1.1)

Copy Markdown View Source

WebView.Error is a module for return codes of library functions that don't return a reference. The library function return value can be matched to test for errors.

For example:

if WebView.bind(~c'f', & &1) == WebView.Errors.duplicate do
  IO.inspect ("Error: javascript function already registered.")
end

Summary

Functions

arg_invalid()

canceled()

duplicate()

missing_dep()

not_found()

ok()

state_invalid()

unspecified()