W3cubDocs

/Phoenix

Ecto.NoPrimaryKeyFieldError exception

Raised at runtime when an operation that requires a primary key is invoked with a schema that does not define a primary key by using @primary_key false

Summary

Functions

exception(msg)

Callback implementation for Exception.exception/1

message(exception)

Callback implementation for Exception.message/1

Functions

exception(msg)

exception(Keyword.t) :: Exception.t
exception(String.t) :: Exception.t

Callback implementation for Exception.exception/1.

message(exception)

message(Exception.t) :: String.t

Callback implementation for Exception.message/1.

© 2012 Plataformatec
Licensed under the Apache License, Version 2.0.
https://hexdocs.pm/ecto/Ecto.NoPrimaryKeyFieldError.html