As reported to the FAA. Reports are unverified, and codes are left as the FAA publishes them.
What was found
FLAP FAIL CAUTION MESSAGE IN FLIGHT FLAPS INDICATED 0 DEGREES PERFORMED FLAP REST PROCEDURE IAW AWAC SUP 98-18G BOX 12 ABOUT 20 MINS AFTER DEPARTURE, ABOUT 17000 FEET, THE PLANE SHOWED A FLAPS FAIL CAUTION MESSAGE. THE FO WAS FLYING AT THE TIME. WE PERFORMED THE QRH AND NOTIFIED ATC AND DECLARED AN EMERGENCY AND DECIDED TO CONTINUE TO DESTINATION.