Remove usage of toString() in directive error messages.

Description

Data prep uses `toString()` in `DirectiveExecutionException` in many directives such as `parse-as-avro`, `column-replace` etc. As a consequence, on UI, error message has classname and object hash in it. For example, for `parse-as-avro` directive the error message looks something like:

co.cask.directives.parser.ParseAvroFile@77c46696 : column name should be of type byte array avro file.

 

Instead it should be something as below:

Invalid data : column name should be of type byte array avro file.

Release Notes

None

Activity

Show:

Vinisha Shah September 4, 2019 at 4:12 PM

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Components

Fix versions

Priority

Created September 24, 2018 at 10:38 PM
Updated September 5, 2019 at 4:23 AM
Resolved September 5, 2019 at 4:23 AM