Module: Sequencescape::Api::BasicErrorHandling
- Included in:
- Sequencescape::Api, Associations::BelongsTo::AssociationProxy::LoadHandler, FinderMethods::AllHandler, FinderMethods::FindByUuidHandler, ModifyingHandler, PageOfResults::UpdateHandler, Search::BaseHandler
- Defined in:
- lib/sequencescape-api/errors.rb
Instance Method Summary (collapse)
- - (Object) missing(json)
- - (Object) redirection(json) {|_self| ... }
- - (Object) unauthenticated(json)
Instance Method Details
- (Object) missing(json)
29 30 31 |
# File 'lib/sequencescape-api/errors.rb', line 29 def missing(json) raise Sequencescape::Api::ResourceNotFound, json end |
- (Object) redirection(json) {|_self| ... }
33 34 35 |
# File 'lib/sequencescape-api/errors.rb', line 33 def redirection(json, &block) yield(self) end |
- (Object) unauthenticated(json)
25 26 27 |
# File 'lib/sequencescape-api/errors.rb', line 25 def unauthenticated(json) raise Sequencescape::Api::UnauthenticatedError, json end |