Exception: Browser::Database::SQL::Error

Inherits:
StandardError
  • Object
show all
Defined in:
opal/browser/database/sql.rb

Constant Summary collapse

Unknown =
Class.new(self)
Database =
Class.new(self)
Version =
Class.new(self)
TooLarge =
Class.new(self)
Quota =
Class.new(self)
Syntax =
Class.new(self)
Constraint =
Class.new(self)
Timeout =
Class.new(self)

Class Method Summary collapse

Class Method Details

.new(error) ⇒ Object


13
14
15
16
17
18
# File 'opal/browser/database/sql.rb', line 13

def self.new(error)
  return super if self != Error

  [Unknown, Database, Version, TooLarge, Quota, Syntax, Constraint, Timeout] \
    [`error.code`].new(`error.message`)
end