Top Level Namespace

Defined Under Namespace

Modules: Admin, EmailerHelper, ExportEmailHelper, Hip3, MarcHelper, MetadataHelper, OpenSearchHelper, ResolveHelper, SearchHelper, SearchMethods, Sfx4, TermColor, TruncateToDbLimit, Umlaut, UmlautConfigurable, UmlautHttp, XmlSchemaHelper Classes: AjaxExport, AllBooksDotCom, Amazon, AwsProductSign, Blacklight, BookFinder, Bx, Clickthrough, Collection, CoverThing, CronTab, CrossrefLookup, DispatchedService, DissertationCatch, DummyService, ElsevierCover, EmailExport, Emailer, ExportEmailController, Ezproxy, FeedbackController, FeedbackMailer, GoogleBookSearch, GoogleScholarLink, Gpo, HathiTrust, Hip3Service, HipHoldingSearch, Illiad, InternetArchive, IsbnDb, IsbnLink, Isi, IsiResponseException, Jcr, JsHelperController, LinkRouterController, Opac, OpenLibrary, OpenLibraryCover, OpenSearchController, Permalink, Pubmed, Referent, ReferentFilter, ReferentValue, Request, RequestToFixture, ResolveController, ResourceController, Scopus, Scopus2, SearchController, SectionRenderer, Service, ServiceResponse, ServiceStore, ServiceTypeValue, ServiceWave, Sfx, SfxBackchannelRecord, SfxUrl, StoreController, TxtHoldingExport, UlrichsCover, UlrichsLink, UmlautController, Worldcat, WorldcatIdentities

Instance Method Summary collapse

Instance Method Details

#raise_missing_url!(service_response) ⇒ Object

Raises:

  • (ArgumentError)

68
69
70
71
72
73
74
75
76
77
# File 'app/controllers/link_router_controller.rb', line 68

def raise_missing_url!(service_response)
  svc_rsp_id  = service_response.try(:id)
  service_id  = service_response.try(:service_id)
  type        = service_response.try(:service_type_value_name)
  text        = service_response.try(:display_text)
  request_id  = service_response.try(:request).try(:id)
  request_url = service_response.try(:request).try(:http_env).try {|h| h["REQUEST_URI"] }

  raise ArgumentError.new("LinkRouterController#index missing URL to redirect to for ServiceResponse:#{svc_rsp_id} (#{service_id}/#{type}/#{text}) from original request url: #{request_url}")
end