Exception: Geminize::ContentBlockedError

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

Overview

Error raised when the content is blocked by the safety filters

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ContentBlockedError.



117
118
119
120
121
122
123
# File 'lib/geminize/errors.rb', line 117

def initialize(message = nil, code = nil, http_status = 400)
  super(
    message || "Content blocked by safety filters.",
    code,
    http_status
  )
end