[#0017156] Added exception handling to custom attributes
[#0017156, 0017144] Fix exception handling and localisation for custom attributes