Exception: GitHub::SQL::BadValue

Inherits:
Error
  • Object
show all
Defined in:
lib/github/sql.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.



112
113
114
115
# File 'lib/github/sql.rb', line 112

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