lib/lexer/identity.rb in lexer-identity-0.1.0 vs lib/lexer/identity.rb in lexer-identity-0.2.0

- old
+ new

@@ -20,11 +20,11 @@ # config.api_token = "..." # config.contributor_token = "..." # config.consumer_token = "..." # end # - # Lexer::Identity.enrich( links: { email: "...", ... }, attributes: { "com.mybrand.name": "...", ... } ) + # Lexer::Identity.enrich( id: "...", links: { email: "...", ... }, attributes: { "com.mybrand.name": "...", ... } ) # # See the +Lexer::Identity.enrich+ documentation for more details. module Identity # Base RuntimeError class for Identity related errors. # Most Lexer and Identiy errors inherit this class. @@ -41,9 +41,15 @@ end end # Will be thrown when there is an error with the Module's configuration class ConfigurationError < Error; end + + # Thrown when the attribute payload is not valid + class AttributePayloadError < Error; end + + # Thrown when a request does not contain an ID or Link + class MissingLinksError < Error; end # Will be thrown when there is an error communicating with the API # Also inherited by other errors class HttpError < Error; end