D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
td-agent
/
embedded
/
lib
/
ruby
/
gems
/
2.1.0
/
gems
/
jbuilder-2.6.3
/
lib
/
jbuilder
/
Filename :
errors.rb
back
Copy
require 'jbuilder/jbuilder' class Jbuilder class NullError < ::NoMethodError def self.build(key) message = "Failed to add #{key.to_s.inspect} property to null object" new(message) end end class ArrayError < ::StandardError def self.build(key) message = "Failed to add #{key.to_s.inspect} property to an array" new(message) end end class MergeError < ::StandardError def self.build(current_value, updates) message = "Can't merge #{updates.inspect} into #{current_value.inspect}" new(message) end end end