Exception: GitHub::SQL::BadValue

Inherits:
Error
  • Object
show all
Defined in:
lib/github/sql/errors.rb

Overview

Public: Raised when a bound value can’t be sanitized.

Instance Method Summary collapse

Constructor Details

#initialize(value, description = nil) ⇒ BadValue

Returns a new instance of BadValue.



16
17
18
19
# File 'lib/github/sql/errors.rb', line 16

def initialize(value, description = nil)
  description ||= "a #{value.class.name}"
  super "Can't sanitize #{description}: #{value.inspect}"
end