Exception: Geminize::InvalidModelError

Inherits:
BadRequestError show all
Defined in:
lib/geminize/errors.rb

Overview

Error raised when a requested model is invalid or not available

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, code = nil, http_status = 400) ⇒ InvalidModelError

Returns a new instance of InvalidModelError.



95
96
97
98
99
100
101
# File 'lib/geminize/errors.rb', line 95

def initialize(message = nil, code = nil, http_status = 400)
  super(
    message || "The specified model is invalid or not available.",
    code,
    http_status
  )
end