Exception: Basecamp::ValidationError

Inherits:
Error
  • Object
show all
Defined in:
lib/basecamp/validation_error.rb

Overview

Raised for validation errors (400, 422).

Instance Method Summary collapse

Constructor Details

#initialize(message, hint: nil, http_status: 400) ⇒ ValidationError

Returns a new instance of ValidationError.



6
7
8
9
10
11
12
13
# File 'lib/basecamp/validation_error.rb', line 6

def initialize(message, hint: nil, http_status: 400)
  super(
    code: ErrorCode::VALIDATION,
    message: message,
    hint: hint,
    http_status: http_status
  )
end