module Forcast module Application module Error class General < StandardError attr_reader :status, :error, :message def initialize(_message=nil) @message = _message || 'Error General' end def fetch_json Helpers::Render.json(error, message, status) end end end end end