Exception: Vibe::Error::ClientError

Inherits:
VibeError
  • Object
show all
Defined in:
lib/vibe/error/client_error.rb

Instance Attribute Summary collapse

Attributes inherited from VibeError

#response_headers, #response_message

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ ClientError

Returns a new instance of ClientError.



7
8
9
# File 'lib/vibe/error/client_error.rb', line 7

def initialize(message)
  super(message)
end

Instance Attribute Details

#problemObject (readonly)

Returns the value of attribute problem.



5
6
7
# File 'lib/vibe/error/client_error.rb', line 5

def problem
  @problem
end

#resolutionObject (readonly)

Returns the value of attribute resolution.



5
6
7
# File 'lib/vibe/error/client_error.rb', line 5

def resolution
  @resolution
end

#summaryObject (readonly)

Returns the value of attribute summary.



5
6
7
# File 'lib/vibe/error/client_error.rb', line 5

def summary
  @summary
end

Instance Method Details

#generate_message(attributes) ⇒ Object



11
12
13
14
15
# File 'lib/vibe/error/client_error.rb', line 11

def generate_message(attributes)
  "\nProblem:\n #{attributes[:problem]}"+
  "\nSummary:\n #{attributes[:summary]}"+
  "\nResolution:\n #{attributes[:resolution]}"
end