Sha256: cc16f70f20ac816e0070c3fb4d278f9060a3c73f8d2e4f61b283e9bfb7fa3cba
Contents?: true
Size: 350 Bytes
Versions: 1
Compression:
Stored size: 350 Bytes
Contents
module Interceptors module DS module Errors Error = Class.new(StandardError) class NullValueNotAllowedError < Error; end class NoSuchElementException < Error; end private def assert!(item) raise NullValueNotAllowedError, "A value must not be null in the dequeue" if item.nil? end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
interceptors-0.1.1 | lib/interceptors/ds/errors.rb |