Mercurial > hg > monetdb-ruby
view lib/MonetDBExceptions.rb @ 0:aab36be83762
Created a new repository for the Ruby driver for MonetDB.
The Ruby files are based on the files in changeset 5db87c0b5920 in the
default branch of the MonetDB repository.
author | Sjoerd Mullender <sjoerd@acm.org> |
---|---|
date | Wed, 02 Mar 2016 14:50:19 +0100 (2016-03-02) |
parents | |
children | 2ebc526bc7dd |
line wrap: on
line source
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # # Copyright 1997 - July 2008 CWI, August 2008 - 2016 MonetDB B.V. # Exception classes for the ruby-monetdb driver class MonetDBQueryError < StandardError def initialize(e) $stderr.puts e end end class MonetDBDataError < StandardError def initialize(e) $stderr.puts e end end class MonetDBCommandError < StandardError def initialize(e) $stderr.puts e end end class MonetDBConnectionError < StandardError def initialize(e) $stderr.puts e end end class MonetDBSocketError < StandardError def initialize(e) $stderr.puts e end end class MonetDBProtocolError < StandardError def initialize(e) $stderr.puts e end end