class Hpe3parSdk::HPE3PARException
Attributes
code[R]
http_status[R]
message[R]
ref[R]
Public Class Methods
new(code = nil, message =nil, ref =nil, http_status=nil)
click to toggle source
Calls superclass method
# File lib/Hpe3parSdk/exceptions.rb, line 16 def initialize(code = nil, message =nil, ref =nil, http_status=nil) @code = code @message = message @ref = ref @http_status = http_status formatted_string = 'Error: ' if @http_status formatted_string += ' (HTTP %s)' % @http_status end if @code formatted_string += ' API code: %s' % @code end if @message formatted_string += ' - %s' % @message end if @ref formatted_string += ' - %s' % @ref end super(formatted_string) end