Exception: Hpe3parSdk::HTTPMethodNotAllowed

Inherits:
HPE3PARException show all
Defined in:
lib/Hpe3parSdk/exceptions.rb

Instance Attribute Summary collapse

Attributes inherited from HPE3PARException

#code, #ref

Instance Method Summary collapse

Constructor Details

#initialize(code = nil, message = nil, ref = nil, http_status = nil) ⇒ HTTPMethodNotAllowed

Returns a new instance of HTTPMethodNotAllowed.



147
148
149
150
151
152
153
# File 'lib/Hpe3parSdk/exceptions.rb', line 147

def initialize(code = nil, message =nil, ref =nil, http_status=nil)
  @http_status = 405
  @message = 'Method Not Allowed'
  super(code, message.nil? ? @message : message,
        ref,
        http_status.nil? ? @http_status : http_status)
end

Instance Attribute Details

#http_statusObject (readonly)

HTTP 405 - Method not Allowed



144
145
146
# File 'lib/Hpe3parSdk/exceptions.rb', line 144

def http_status
  @http_status
end

#messageObject (readonly)

HTTP 405 - Method not Allowed



144
145
146
# File 'lib/Hpe3parSdk/exceptions.rb', line 144

def message
  @message
end