Exception: VasException
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- VasException
- Defined in:
- lib/vas/vas_exception.rb
Overview
Raised to indicate a failure has occurred when communicating with the vFabric Administration Server
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
The HTTP error code returned by the server.
-
#messages ⇒ Object
readonly
The error messages, if any, returned by the server.
Instance Method Summary collapse
-
#initialize(messages, code = nil) ⇒ VasException
constructor
:nodoc:.
Constructor Details
#initialize(messages, code = nil) ⇒ VasException
:nodoc:
27 28 29 30 |
# File 'lib/vas/vas_exception.rb', line 27 def initialize(, code=nil) #:nodoc: @code = code @messages = end |
Instance Attribute Details
#code ⇒ Object (readonly)
The HTTP error code returned by the server
22 23 24 |
# File 'lib/vas/vas_exception.rb', line 22 def code @code end |
#messages ⇒ Object (readonly)
The error messages, if any, returned by the server
25 26 27 |
# File 'lib/vas/vas_exception.rb', line 25 def @messages end |