View Source EctoPhone.Error exception (EctoPhone v1.0.0)
An error providing information when a phone number may not be parsed.
iex> Exception.message(EctoPhone.Error.exception(type: :format))
"expected to be in the format +1 ###-###-####"
iex> Exception.message(EctoPhone.Error.exception(type: :validation))
"is not a valid phone number"
iex> Exception.message(EctoPhone.Error.exception(type: :unknown))
"is not valid"
iex> Exception.message(EctoPhone.Error.exception(message: "is the wrong shape"))
"is the wrong shape"