Replace your lame string errors with object versions.
Use Error.create
to pass objects as error messages. That's it, really simple, one line error objects, go to town!
throw Error.create({ title: 'Message', details: { data: {} } }, 'OPTIONAL_ERROR_CODE');