class Grac::Exception::InvalidContent
Public Class Methods
new(body, type)
click to toggle source
# File lib/grac/exception.rb, line 64 def initialize(body, type) @body = body @type = type end
Public Instance Methods
inspect()
click to toggle source
# File lib/grac/exception.rb, line 73 def inspect "#{self.class.name}: #{message}" end
message()
click to toggle source
# File lib/grac/exception.rb, line 69 def message "Failed to parse body as '#{@type}': '#{@body}'" end
Also aliased as: to_s