Sha256: 23273e43dfeace58eef1e5c5276ae8752bf4be494a7e8e0820bb85cd75f7afde
Contents?: true
Size: 495 Bytes
Versions: 3
Compression:
Stored size: 495 Bytes
Contents
module NQL class Error < StandardError end class SyntaxError < Error end class DataTypeError < Error def initialize(text) super "#{text} must be a String" end end class InvalidModelError < Error def initialize(model) super "#{model} must be subclass of ActiveRecord::Base" end end class AttributesNotFoundError < Error def initialize(model, attributes) super "#{model} does not contains the attributes #{attributes}" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nql-0.1.2 | lib/nql/error.rb |
nql-0.1.1 | lib/nql/error.rb |
nql-0.1.0 | lib/nql/error.rb |