Exception: Thrift::TransportException

Inherits:
Exception
  • Object
show all
Defined in:
lib/thrift/transport/base_transport.rb

Constant Summary collapse

UNKNOWN =
0
NOT_OPEN =
1
ALREADY_OPEN =
2
TIMED_OUT =
3
END_OF_FILE =
4

Instance Attribute Summary collapse

Attributes inherited from Exception

#message

Instance Method Summary collapse

Constructor Details

#initialize(type = UNKNOWN, message = nil) ⇒ TransportException

Returns a new instance of TransportException.



31
32
33
34
# File 'lib/thrift/transport/base_transport.rb', line 31

def initialize(type=UNKNOWN, message=nil)
  super(message)
  @type = type
end

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



29
30
31
# File 'lib/thrift/transport/base_transport.rb', line 29

def type
  @type
end