Current section

Files

Jump to
perspective lib perspective domain_pool errors node_not_found.ex
Raw

lib/perspective/domain_pool/errors/node_not_found.ex

defmodule Perspective.DomainPool.NodeNotFound do
defexception [:id]
def exception(value) do
%__MODULE__{
id: value
}
end
def message(%__MODULE__{} = exception) do
"The domain node (#{exception.id}) could not be found"
end
end