Exception: NATS::RPC::RemoteError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/nats/rpc/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#remote_exceptionObject

Returns the value of attribute remote_exception.



4
5
6
# File 'lib/nats/rpc/errors.rb', line 4

def remote_exception
  @remote_exception
end

Instance Method Details

#messageObject



11
12
13
# File 'lib/nats/rpc/errors.rb', line 11

def message
  super
end

#to_sObject



6
7
8
9
# File 'lib/nats/rpc/errors.rb', line 6

def to_s
  msg = super
  "#{self.remote_exception} (#{msg})"
end