Exception: ScreenshotFreeAPI::ValidationError

Inherits:
ScreenshotFreeAPIError show all
Defined in:
lib/screenshotfreeapi/errors.rb

Overview

400 — Request body failed Zod validation on the server.

Instance Attribute Summary

Attributes inherited from ScreenshotFreeAPIError

#details, #error_code, #status_code

Instance Method Summary collapse

Constructor Details

#initialize(msg = "Validation error", details = nil) ⇒ ValidationError

Returns a new instance of ValidationError.



39
40
41
# File 'lib/screenshotfreeapi/errors.rb', line 39

def initialize(msg = "Validation error", details = nil)
  super(400, "ValidationError", msg, details)
end