             let last = stack.last
             push(.Parameter(name: "", discussion: nil))
             guard case .Parameters? = last?.kind else {
-                error(.ElementNotInsideExpectedParentElement(element: elementName, expectedParentElement: "Parameters"))
+                handleError(.ElementNotInsideExpectedParentElement(element: elementName, expectedParentElement: "Parameters"))
                 return
             }
         case "ResultDiscussion":

            assert(parameterDepth > 0)
            parameterDepth -= 1
            guard !name.isEmpty else {
                error(.MissingRequiredChildElement(element: "Parameter", childElement: "Name"))
                return
            }
            let p = Documentation.Parameter(name: name, discussion: discussion)

        stack[stack.count - 1].kind = state
    }

    func handleError(error: SwiftDocXMLError) {
        guard parseError == nil else {
            return
        }
