Class: Baykit::BayServer::Docker::Http::H2::H2ErrorCode

Inherits:
Util::Message
  • Object
show all
Includes:
Util
Defined in:
lib/baykit/bayserver/docker/http/h2/h2_error_code.rb

Constant Summary collapse

NO_ERROR =
0x0
PROTOCOL_ERROR =
0x1
INTERNAL_ERROR =
0x2
FLOW_CONTROL_ERROR =
0x3
SETTINGS_TIMEOUT =
0x4
STREAM_CLOSED =
0x5
FRAME_SIZE_ERROR =
0x6
REFUSED_STREAM =
0x7
CANCEL =
0x8
COMPRESSION_ERROR =
0x9
CONNECT_ERROR =
0xa
ENHANCE_YOUR_CALM =
0xb
INADEQUATE_SECURITY =
0xc
HTTP_1_1_REQUIRED =
0xd

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.descObject (readonly)

Returns the value of attribute desc.



28
29
30
# File 'lib/baykit/bayserver/docker/http/h2/h2_error_code.rb', line 28

def desc
  @desc
end

.msgObject (readonly)

Returns the value of attribute msg.



29
30
31
# File 'lib/baykit/bayserver/docker/http/h2/h2_error_code.rb', line 29

def msg
  @msg
end

Class Method Details

.initObject



37
38
39
40
41
42
43
44
45
# File 'lib/baykit/bayserver/docker/http/h2/h2_error_code.rb', line 37

def self.init
  if(@msg != nil)
    return
  end

  prefix = BayServer.bserv_lib + "/conf/h2_messages"
  @msg = H2ErrorCode.new()
  @msg.init(prefix, Locale.new('ja', 'JP'))
end

.initializedObject



32
33
34
35
# File 'lib/baykit/bayserver/docker/http/h2/h2_error_code.rb', line 32

def self.initialized
  @desc = {}
  @msg = nil
end