Exception: ApiError::NotFound

Inherits:
Http
  • Object
show all
Defined in:
lib/api_error/not_found.rb

Overview

Exception thrown for 404 errors

Instance Attribute Summary

Attributes inherited from Http

#code

Instance Method Summary collapse

Constructor Details

#initialize(message = "Not found") ⇒ NotFound

Returns a new instance of NotFound.



8
9
10
# File 'lib/api_error/not_found.rb', line 8

def initialize(message = "Not found")
  super(message, 404)
end