Replace the exported errorHanlder with a throwError function.

Just exporting the error handler doesn't work with custom error handlers set via setErrorHandler.
For this to work an extra wrapper function throwError is needed.

Example:
swagger.throwError(req, res, swagger.errors.notFound('User'));