Add support for errorParameters in custom error codes.
Authored by: b_calderwood 2012-07-24
Parent: [r6282]
Child: [r6284]