Exception: Kabk::NotFoundError

Inherits:
ApiError
  • Object
show all
Defined in:
lib/kabk/errors.rb

Instance Attribute Summary

Attributes inherited from ApiError

#code, #fields, #http_status

Instance Method Summary collapse

Methods inherited from ApiError

#to_h

Constructor Details

#initialize(message = "Resource not found") ⇒ NotFoundError

Returns a new instance of NotFoundError.



52
53
54
# File 'lib/kabk/errors.rb', line 52

def initialize(message = "Resource not found")
  super(message, code: "NOT_FOUND", http_status: 404)
end