Sha256: 502934c3f0f27d2120556d1ec6d2d0fefc4405e07aa31533c9f54d34bc5b383d
Contents?: true
Size: 617 Bytes
Versions: 5
Compression:
Stored size: 617 Bytes
Contents
module Msf module RPC API_VERSION = "1.0" class Exception < RuntimeError attr_accessor :code, :message def initialize(code, message) self.code = code self.message = message end end class ServerException < RuntimeError attr_accessor :code, :error_message, :error_class, :error_backtrace def initialize(code, error_message, error_class, error_backtrace) self.code = code self.error_message = error_message self.error_class = error_class self.error_backtrace = error_backtrace end def to_s "#{self.error_class} #{self.error_message} #{self.error_backtrace}" end end end end
Version data entries
5 entries across 5 versions & 1 rubygems