Sha256: a16d6af2d7a9ca9e1564ce2f6eadba85d950961af19894efdd20c1dfd5c58c0c
Contents?: true
Size: 363 Bytes
Versions: 35
Compression:
Stored size: 363 Bytes
Contents
class ErrorHandler < RubyPitaya::HandlerBase non_authenticated_actions :getError def getError error_code = RubyPitaya::StatusCodes::CODE_ERROR error_message = "Some Error" raise RubyPitaya::RouteError.new(error_code, error_message) response = { code: StatusCodes::CODE_OK, data: { message: 'Ok!' } } end end
Version data entries
35 entries across 31 versions & 1 rubygems