As far as I can tell, there is no easy way to include a structure or other type of complex object as part of the details of a custom error using CFTHROW.
I am using the XMLValidate tag function to validate some XML content against an XSD.
But because the resulting structure does not automatically result in an application error if the validation STATUS = "no", I have to use CFTHROW to generate a custom error, but I would like to include the structure created by XMLValidate as part of the error detail, and I do not see a way to do it. I would prefer not to have to parse out the individual messages in the resulting "ERRORS" array and somehow send them with the CFTHROW, as there could be several messages, and re-formatting them in a manner that CFTHROW can accommodate seems a long way to go, especially when that whole structure is really what I want.
Does anyone know how to send a complex object (like the structure from XMLValidate) as part of the CFTHROW results?
I have researched the CFTHROW "Object" attribute, but it is as clear as mud.
Thanks in advance.
I am using the XMLValidate tag function to validate some XML content against an XSD.
But because the resulting structure does not automatically result in an application error if the validation STATUS = "no", I have to use CFTHROW to generate a custom error, but I would like to include the structure created by XMLValidate as part of the error detail, and I do not see a way to do it. I would prefer not to have to parse out the individual messages in the resulting "ERRORS" array and somehow send them with the CFTHROW, as there could be several messages, and re-formatting them in a manner that CFTHROW can accommodate seems a long way to go, especially when that whole structure is really what I want.
Does anyone know how to send a complex object (like the structure from XMLValidate) as part of the CFTHROW results?
I have researched the CFTHROW "Object" attribute, but it is as clear as mud.
Thanks in advance.