Exception: OpenShift::FrontendHttpServerException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/openshift-origin-node/model/frontend_httpd.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil, container_uuid = nil, container_name = nil, namespace = nil) ⇒ FrontendHttpServerException

Returns a new instance of FrontendHttpServerException.



29
30
31
32
33
34
# File 'lib/openshift-origin-node/model/frontend_httpd.rb', line 29

def initialize(msg=nil, container_uuid=nil, container_name=nil, namespace=nil)
  @container_uuid = container_uuid
  @container_name = container_name
  @namespace = namespace
  super(msg)
end

Instance Attribute Details

#container_nameObject (readonly)

Returns the value of attribute container_name.



26
27
28
# File 'lib/openshift-origin-node/model/frontend_httpd.rb', line 26

def container_name
  @container_name
end

#container_uuidObject (readonly)

Returns the value of attribute container_uuid.



26
27
28
# File 'lib/openshift-origin-node/model/frontend_httpd.rb', line 26

def container_uuid
  @container_uuid
end

#namespaceObject (readonly)

Returns the value of attribute namespace.



27
28
29
# File 'lib/openshift-origin-node/model/frontend_httpd.rb', line 27

def namespace
  @namespace
end

Instance Method Details

#to_sObject



36
37
38
39
40
41
# File 'lib/openshift-origin-node/model/frontend_httpd.rb', line 36

def to_s
  m = super
  m+= ": #{@container_name}" if not @container_name.nil?
  m+= ": #{@namespace}" if not @namespace.nil?
  m
end