Exception: SacsRuby::NotFoundError

Inherits:
Error
  • Object
show all
Defined in:
lib/sacs_ruby/error.rb

Overview

404 HTTP Error

Instance Method Summary collapse

Methods inherited from Error

#description, #error, #to_s

Constructor Details

#initialize(response) ⇒ NotFoundError

Returns a new instance of NotFoundError.



23
24
25
26
27
28
29
# File 'lib/sacs_ruby/error.rb', line 23

def initialize(response)
  if response.nil?
    @response = { 'type' => 'Not Found', 'message' => '404 Not Found' }
  else
    super
  end
end