Exception: Hpe3parSdk::HTTPRequestURITooLong

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) ⇒ HTTPRequestURITooLong

Returns a new instance of HTTPRequestURITooLong.



286
287
288
289
290
291
292
# File 'lib/Hpe3parSdk/exceptions.rb', line 286

def initialize(code = nil, message =nil, ref =nil, http_status=nil)
  @http_status = 414
  @message = 'Request URI Too Large'
  super(code, message.nil? ? @message : message,
        ref,
        http_status.nil? ? @http_status : http_status)
end

Instance Attribute Details

#http_statusObject (readonly)

HTTP 414 - The URI provided was too long for the server to process.



283
284
285
# File 'lib/Hpe3parSdk/exceptions.rb', line 283

def http_status
  @http_status
end

#messageObject (readonly)

HTTP 414 - The URI provided was too long for the server to process.



283
284
285
# File 'lib/Hpe3parSdk/exceptions.rb', line 283

def message
  @message
end