atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Speidel (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (ATLAS-275) Improve error message when creating a trait and not specifying all required trait attributes
Date Mon, 02 Nov 2015 19:56:27 GMT

    [ https://issues.apache.org/jira/browse/ATLAS-275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14985901#comment-14985901
] 

John Speidel edited comment on ATLAS-275 at 11/2/15 7:55 PM:
-------------------------------------------------------------

Attached patch provides better error message when a required trait attribute is missing:

{code}
error: "Invalid Trait specified. Field 'expiry_date' can't be null: AttributeInfo{name='expiry_date',
dataType=org.apache.atlas.typesystem.types.DataTypes$DateType@70cfbe37, multiplicity=Multiplicity{lower=1,
upper=1, isUnique=false}, isComposite=false, isUnique=false, isIndexable=true, reverseAttributeName='null'}"
{code}


was (Author: jspeidel):
Attached patch provides better error message when a required trait attribute is missing:

error: "Invalid Trait specified. Field 'expiry_date' can't be null: AttributeInfo{name='expiry_date',
dataType=org.apache.atlas.typesystem.types.DataTypes$DateType@70cfbe37, multiplicity=Multiplicity{lower=1,
upper=1, isUnique=false}, isComposite=false, isUnique=false, isIndexable=true, reverseAttributeName='null'}"

> Improve error message when creating a trait and not specifying all required trait attributes
> --------------------------------------------------------------------------------------------
>
>                 Key: ATLAS-275
>                 URL: https://issues.apache.org/jira/browse/ATLAS-275
>             Project: Atlas
>          Issue Type: Task
>            Reporter: John Speidel
>            Assignee: John Speidel
>         Attachments: ATLAS-275.patch
>
>
> When an attempt is made to add a trait to an entity where not all of the trait attributes
are provided, the error msg returned to the user is:
> "Error deserializing trait instance"
> The user than needs to dig through the provided stack trace to see what the actual problem
is.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message