commit | ff9a5a527a05d0638fca6010fefa9e7420d1f7ab | [log] [tgz] |
---|---|---|
author | Michael Butler <butlermichael@google.com> | Fri Oct 15 16:23:20 2021 -0700 |
committer | Michael Butler <butlermichael@google.com> | Fri Oct 15 16:37:09 2021 -0700 |
tree | dff8b5112d72c6bd73bb72e8313b8361ef64ae84 | |
parent | 176144714ecf6cbce07b572a72a0823ca8dae400 [diff] |
Allow implicit conversions for NN errors -- hal This change allows GeneralErrors to be created from a string and allows ExecutionErrors to be created from a string or a GeneralError. This makes error handling more terse, removing the need for helper functions such as makeGeneralFailure or makeExecutionFailure. Bug: N/A Test: mma Change-Id: I8c5e80a2eb4f399fad64aab763fe6fa08cf8d1db