From review feedback for patch in bug 51836 <https://bugs.webkit.org/show_bug.cgi?id=51836#c15>, we should move the constructor definitions outside the class definition for ResourceError
*** Bug 57510 has been marked as a duplicate of this bug. ***